Skip to content

Commit

Permalink
powerwake switch fix
Browse files Browse the repository at this point in the history
powerwake switch was linked to alarm switch.
  • Loading branch information
NorbertHD authored Sep 11, 2023
1 parent 5b65298 commit af51d20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/somneo/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
Expand Down

0 comments on commit af51d20

Please sign in to comment.