fix closed cover state (#14424)

This commit is contained in:
Paul Bottein 2022-11-21 16:34:17 +01:00 committed by GitHub
parent 0bfb2b4a56
commit 49d9cf41fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ export function stateActive(stateObj: HassEntity, state?: string): boolean {
// Custom cases
switch (domain) {
case "cover":
return !["close", "closing"].includes(compareState);
return !["closed", "closing"].includes(compareState);
case "device_tracker":
case "person":
return compareState !== "not_home";