Fix live view for non-Frigate cameras.

This commit is contained in:
Dermot Duffy
2022-05-09 12:25:41 -07:00
parent 1c3d20f790
commit f05dbef95d
+4 -7
View File
@@ -126,19 +126,16 @@ export class FrigateCardLive extends LitElement {
this.conditionState, this.conditionState,
) as LiveConfig; ) as LiveConfig;
const browseMediaParams = // Does not use getFullDependentBrowseMediaQueryParametersOrDispatchError to
BrowseMediaUtil.getFullDependentBrowseMediaQueryParametersOrDispatchError( // ensure that non-Frigate cameras will work in live view (they will not
this, // have a Frigate camera name).
const browseMediaParams = BrowseMediaUtil.getFullDependentBrowseMediaQueryParameters(
this.hass, this.hass,
this.cameras, this.cameras,
this.view.camera, this.view.camera,
config.controls.thumbnails.media, config.controls.thumbnails.media,
); );
if (!browseMediaParams) {
return;
}
// Notes: // Notes:
// - See use of liveConfig and not config below -- the carousel will // - See use of liveConfig and not config below -- the carousel will
// independently override the liveConfig to reflect the camera in the // independently override the liveConfig to reflect the camera in the