Skip to content

Commit

Permalink
Merge pull request #41 from NorbertHD/powerwake-switch-fix
Browse files Browse the repository at this point in the history
powerwake switch fix
  • Loading branch information
theneweinstein authored Sep 17, 2023
2 parents 57dab27 + af51d20 commit 95ccb62
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 95ccb62

Please sign in to comment.