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] }