Fix camera and timer active state (#14578)
This commit is contained in:
parent
e6f2e8058b
commit
228fd4b7fe
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue