From 228fd4b7fe0a66ba2edfad91661fc6be88c1395a Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Tue, 6 Dec 2022 17:46:07 +0100 Subject: [PATCH] Fix camera and timer active state (#14578) --- src/common/entity/state_active.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/entity/state_active.ts b/src/common/entity/state_active.ts index 3ec7f1bad7..5bd58e9f2c 100644 --- a/src/common/entity/state_active.ts +++ b/src/common/entity/state_active.ts @@ -33,6 +33,10 @@ export function stateActive(stateObj: HassEntity, state?: string): boolean { return compareState === "problem"; case "group": return ["on", "home", "open", "locked", "problem"].includes(compareState); + case "timer": + return compareState === "active"; + case "camera": + return compareState === "streaming"; default: return true; }