From af51d2080651106d4ab6f14cef1f1346030f633b Mon Sep 17 00:00:00 2001 From: Norbert Schulze Date: Mon, 11 Sep 2023 20:46:09 +0200 Subject: [PATCH] powerwake switch fix powerwake switch was linked to alarm switch. --- custom_components/somneo/switch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/somneo/switch.py b/custom_components/somneo/switch.py index c94bca9..5c0676d 100644 --- a/custom_components/somneo/switch.py +++ b/custom_components/somneo/switch.py @@ -154,7 +154,7 @@ def __init__(self, coordinator, unique_id, name, device_info, alarm): @callback def _handle_coordinator_update(self) -> None: - self._attr_is_on = self.coordinator.data["alarms"][self._alarm] + self._attr_is_on = self.coordinator.data["powerwake"][self._alarm] self._attr_extra_state_attributes = { "powerwake_delta": self.coordinator.data["powerwake_delta"][self._alarm] }