From 139cbb363c25c88adcae20461895d1ea6595dd09 Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Thu, 15 Dec 2022 11:02:47 +0100 Subject: [PATCH] Cover in state "closing" should be in "active" color (#14785) --- src/common/entity/state_active.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/entity/state_active.ts b/src/common/entity/state_active.ts index af5f75d126..a22ee5c9e5 100644 --- a/src/common/entity/state_active.ts +++ b/src/common/entity/state_active.ts @@ -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";