Cover in state "closing" should be in "active" color (#14785)

This commit is contained in:
Philip Allgaier 2022-12-15 11:02:47 +01:00 committed by GitHub
parent e8e4733fc9
commit 139cbb363c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ export function stateActive(stateObj: HassEntity, state?: string): boolean {
// "on" and "off" are active, as "off" just means alert was acknowledged but is still active
return compareState !== "idle";
case "cover":
return !["closed", "closing"].includes(compareState);
return compareState !== "closed";
case "device_tracker":
case "person":
return compareState !== "not_home";