Pass through correct camera name.

This commit is contained in:
Dermot Duffy
2021-10-07 20:47:05 -07:00
parent 1286f7a473
commit 8cf460fdb7
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -31,6 +31,9 @@ export class FrigateCardViewer extends LitElement {
@property({ attribute: false })
protected config!: FrigateCardConfig;
@property({ attribute: false })
protected frigateCameraName!: string;
protected render(): TemplateResult | void {
return html`${until(this._render(), renderProgressIndicator())}`;
}
@@ -50,7 +53,7 @@ export class FrigateCardViewer extends LitElement {
</frigate-card-live-webrtc>`
: html` <frigate-card-live-jsmpeg
.hass=${this.hass}
.cameraName=${this.config.frigate_camera_name}
.cameraName=${this.frigateCameraName}
.clientId=${this.config.frigate_client_id}
>
</frigate-card-live-jsmpeg>`}`;