From cfcb649a6ff42ac89ac2b6da7bb60a518f8b43d2 Mon Sep 17 00:00:00 2001 From: ildar170975 <71872483+ildar170975@users.noreply.github.com> Date: Thu, 29 Jan 2026 16:35:53 +0300 Subject: [PATCH] computeGroupEntitiesState(): fix condition (#29234) * fix condition * fix condition * prettier --- src/common/entity/group_entities.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/entity/group_entities.ts b/src/common/entity/group_entities.ts index 1b22b42cc8..76560e9b19 100644 --- a/src/common/entity/group_entities.ts +++ b/src/common/entity/group_entities.ts @@ -8,7 +8,9 @@ export const computeGroupEntitiesState = (states: HassEntity[]): string => { return UNAVAILABLE; } - const validState = states.filter((stateObj) => isUnavailableState(stateObj)); + const validState = states.some( + (stateObj) => !isUnavailableState(stateObj.state) + ); if (!validState) { return UNAVAILABLE;