From f05dbef95dc6f83696e1b076fb37c509a163ab6d Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Mon, 9 May 2022 12:25:41 -0700 Subject: [PATCH] Fix live view for non-Frigate cameras. --- src/components/live.ts | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/src/components/live.ts b/src/components/live.ts index 0b895dfe..b36e2a18 100644 --- a/src/components/live.ts +++ b/src/components/live.ts @@ -126,18 +126,15 @@ export class FrigateCardLive extends LitElement { this.conditionState, ) as LiveConfig; - const browseMediaParams = - BrowseMediaUtil.getFullDependentBrowseMediaQueryParametersOrDispatchError( - this, - this.hass, - this.cameras, - this.view.camera, - config.controls.thumbnails.media, - ); - - if (!browseMediaParams) { - return; - } + // Does not use getFullDependentBrowseMediaQueryParametersOrDispatchError to + // ensure that non-Frigate cameras will work in live view (they will not + // have a Frigate camera name). + const browseMediaParams = BrowseMediaUtil.getFullDependentBrowseMediaQueryParameters( + this.hass, + this.cameras, + this.view.camera, + config.controls.thumbnails.media, + ); // Notes: // - See use of liveConfig and not config below -- the carousel will