Fix default configuration.

This commit is contained in:
Dermot Duffy committed 2022-01-14 21:31:16 -08:00
1 parent 63995e2e50
commit 68dffdf69d
1 file changed
+3 -3
+3 -3
View File
@@ -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.