;
@property({ attribute: false })
- protected browseMediaQueryParameters?: BrowseMediaQueryParameters;
+ protected cameraConfig?: CameraConfig;
/**
* Master render method.
* @returns A rendered template.
*/
protected render(): TemplateResult | void {
- if (!this.hass || !this.view || !this.browseMediaQueryParameters) {
+ if (!this.hass || !this.view || !this.cameraConfig) {
return;
}
if (!this.view.target) {
+ const browseMediaQueryParameters =
+ BrowseMediaUtil.getBrowseMediaQueryParametersOrDispatchError(
+ this,
+ this.view,
+ this.cameraConfig,
+ );
+ if (!browseMediaQueryParameters) {
+ return;
+ }
+
BrowseMediaUtil.fetchLatestMediaAndDispatchViewChange(
this,
this.hass,
this.view,
- this.browseMediaQueryParameters,
+ browseMediaQueryParameters,
);
return renderProgressIndicator();
}
diff --git a/src/components/live.ts b/src/components/live.ts
index 4bba9d8f..644819bc 100644
--- a/src/components/live.ts
+++ b/src/components/live.ts
@@ -1,4 +1,5 @@
-// TODO readme
+// TODO autodetect live provider from cameras configuration, or allow explicit setting.
+// TODO verify README links worked correctly (e.g. basic cameras configuration)
import {
CSSResultGroup,
@@ -371,7 +372,8 @@ export class FrigateCardLiveCarousel extends FrigateCardMediaCarousel {
const config = getOverriddenConfig(
this.liveConfig,
this.liveOverrides,
- conditionState) as LiveConfig;
+ conditionState,
+ ) as LiveConfig;
return html`
`;
}
diff --git a/src/localize/languages/en.json b/src/localize/languages/en.json
index ecb372c7..8251db6f 100644
--- a/src/localize/languages/en.json
+++ b/src/localize/languages/en.json
@@ -171,12 +171,14 @@
"upgrade_available": "An automated card configuration upgrade is available, please visit the visual card editor",
"webrtc_missing": "WebRTC component not found",
"webrtc_reported_error": "WebRTC component reported an error",
- "no_cameras": "No valid cameras found, you must configure at least one camera with either a camera_entity or camera_name",
- "duplicate_camera_id": "Duplicate Frigate camera, use the 'id' parameter to uniquely identify cameras with the same 'camera_entity' or 'camera_name'",
+ "no_cameras": "No valid cameras found, you must configure at least one camera entry",
+ "no_camera_id": "Could not determine camera id for the following camera, may need to set 'id' parameter manually",
+ "duplicate_camera_id": "Duplicate Frigate camera id for the following camera, use the 'id' parameter to uniquely identify cameras",
"could_not_render_elements": "Could not render picture elements",
"invalid_elements_config": "Invalid picture elements configuration",
"jsmpeg_no_sign": "Could not retrieve or sign JSMPEG websocket path",
"jsmpeg_no_player": "Could not start JSMPEG player",
+ "no_camera_name": "Could not determine Frigate camera name for camera, please specify either 'camera_entity' or 'camera_name' for the following camera",
"download_no_media": "No media to download",
"download_no_event_id": "Could not extract Frigate event id from media",
"download_sign_failed": "Could not sign media URL for download"
diff --git a/src/scss/message.scss b/src/scss/message.scss
index 21181063..11a039c7 100644
--- a/src/scss/message.scss
+++ b/src/scss/message.scss
@@ -19,4 +19,5 @@
span {
padding: 10px;
+ word-break: break-word;
}
\ No newline at end of file