From e8201f78480d261abce57ebec829f54f88a1ef1c Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Thu, 10 Jul 2025 15:59:53 +0200 Subject: [PATCH] Use variable --- .../components/voice/ha-more-info-view-toggle-group.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dialogs/more-info/components/voice/ha-more-info-view-toggle-group.ts b/src/dialogs/more-info/components/voice/ha-more-info-view-toggle-group.ts index de6e5eecb6..3ce1548ada 100644 --- a/src/dialogs/more-info/components/voice/ha-more-info-view-toggle-group.ts +++ b/src/dialogs/more-info/components/voice/ha-more-info-view-toggle-group.ts @@ -10,7 +10,7 @@ import "../../../../components/ha-control-button"; import "../../../../components/ha-control-button-group"; import "../../../../components/ha-domain-icon"; import { isFullyClosed, isFullyOpen } from "../../../../data/cover"; -import { UNAVAILABLE } from "../../../../data/entity"; +import { OFF, ON, UNAVAILABLE } from "../../../../data/entity"; import { forwardHaptic } from "../../../../data/haptics"; import type { LovelaceSectionConfig } from "../../../../data/lovelace/config/section"; import type { TileCardConfig } from "../../../../panels/lovelace/cards/types"; @@ -79,12 +79,12 @@ class HaMoreInfoViewToggleGroup extends LitElement { const isAllOn = availableEntities.every((entity) => computeDomain(entity.entity_id) === "cover" ? isFullyOpen(entity) - : entity.state === "on" + : entity.state === ON ); const isAllOff = availableEntities.every((entity) => computeDomain(entity.entity_id) === "cover" ? isFullyClosed(entity) - : entity.state === "off" + : entity.state === OFF ); return html`