Fix default configuration.
This commit is contained in:
+3
-3
@@ -210,11 +210,11 @@ export class FrigateCard extends LitElement {
|
|||||||
): FrigateCardConfig {
|
): FrigateCardConfig {
|
||||||
const cameraEntity = entities.find((element) => element.startsWith('camera.'));
|
const cameraEntity = entities.find((element) => element.startsWith('camera.'));
|
||||||
return {
|
return {
|
||||||
frigate: {
|
cameras: [
|
||||||
camera: {
|
{
|
||||||
camera_entity: cameraEntity,
|
camera_entity: cameraEntity,
|
||||||
},
|
},
|
||||||
},
|
],
|
||||||
// Need to use 'as unknown' to convince Typescript that this really isn't a
|
// Need to use 'as unknown' to convince Typescript that this really isn't a
|
||||||
// mistake, despite the miniscule size of the configuration vs the full type
|
// mistake, despite the miniscule size of the configuration vs the full type
|
||||||
// description.
|
// description.
|
||||||
|
|||||||
Reference in New Issue
Block a user