Fix camera and timer active state (#14578)

This commit is contained in:
Paul Bottein 2022-12-06 17:46:07 +01:00 committed by GitHub
parent e6f2e8058b
commit 228fd4b7fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}