Pass through correct camera name.
This commit is contained in:
@@ -583,6 +583,7 @@ export class FrigateCard extends LitElement {
|
|||||||
? html` <frigate-card-live
|
? html` <frigate-card-live
|
||||||
.hass=${this._hass}
|
.hass=${this._hass}
|
||||||
.config=${this.config}
|
.config=${this.config}
|
||||||
|
.frigateCameraName=${this._frigateCameraName}
|
||||||
@frigate-card:media-load=${this._mediaLoadHandler}
|
@frigate-card:media-load=${this._mediaLoadHandler}
|
||||||
@frigate-card:pause=${this._pauseHandler}
|
@frigate-card:pause=${this._pauseHandler}
|
||||||
@frigate-card:play=${this._playHandler}
|
@frigate-card:play=${this._playHandler}
|
||||||
|
|||||||
@@ -31,6 +31,9 @@ export class FrigateCardViewer extends LitElement {
|
|||||||
@property({ attribute: false })
|
@property({ attribute: false })
|
||||||
protected config!: FrigateCardConfig;
|
protected config!: FrigateCardConfig;
|
||||||
|
|
||||||
|
@property({ attribute: false })
|
||||||
|
protected frigateCameraName!: string;
|
||||||
|
|
||||||
protected render(): TemplateResult | void {
|
protected render(): TemplateResult | void {
|
||||||
return html`${until(this._render(), renderProgressIndicator())}`;
|
return html`${until(this._render(), renderProgressIndicator())}`;
|
||||||
}
|
}
|
||||||
@@ -50,7 +53,7 @@ export class FrigateCardViewer extends LitElement {
|
|||||||
</frigate-card-live-webrtc>`
|
</frigate-card-live-webrtc>`
|
||||||
: html` <frigate-card-live-jsmpeg
|
: html` <frigate-card-live-jsmpeg
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
.cameraName=${this.config.frigate_camera_name}
|
.cameraName=${this.frigateCameraName}
|
||||||
.clientId=${this.config.frigate_client_id}
|
.clientId=${this.config.frigate_client_id}
|
||||||
>
|
>
|
||||||
</frigate-card-live-jsmpeg>`}`;
|
</frigate-card-live-jsmpeg>`}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user