feat: Add new option to always error on entity unavailable (#1770)

This commit is contained in:
Dermot Duffy
2024-12-16 21:05:17 -08:00
committed by GitHub
parent 86439af90e
commit 0b681402db
4 changed files with 30 additions and 17 deletions
+6 -1
View File
@@ -271,7 +271,12 @@ export class FrigateCardLiveProvider
hidden: showImageDuringLoading,
};
if (provider === 'ha' || provider === 'image') {
if (
provider === 'ha' ||
provider === 'image' ||
(this.cameraConfig?.camera_entity &&
this.cameraConfig.always_error_if_entity_unavailable)
) {
if (!this.cameraConfig?.camera_entity) {
dispatchLiveErrorEvent(this);
return renderMessage({