mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Cover in state "closing" should be in "active" color (#14785)
This commit is contained in:
parent
e8e4733fc9
commit
139cbb363c
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user