Fix live view for non-Frigate cameras.
This commit is contained in:
+9
-12
@@ -126,18 +126,15 @@ 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).
|
||||||
this.hass,
|
const browseMediaParams = BrowseMediaUtil.getFullDependentBrowseMediaQueryParameters(
|
||||||
this.cameras,
|
this.hass,
|
||||||
this.view.camera,
|
this.cameras,
|
||||||
config.controls.thumbnails.media,
|
this.view.camera,
|
||||||
);
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user