Skip to content

Commit

Permalink
add attribute discomfort temperature to switch
Browse files Browse the repository at this point in the history
  • Loading branch information
LGO44 committed May 8, 2024
1 parent 61be6c2 commit 5b1467a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/wiser/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,10 @@ def extra_state_attributes(self):
if self._name == "Away Mode":
attrs["away_mode_temperature"] = self._away_temperature

if self._name == "Summer Discomfort Prevention":
attrs["indoor_discomfort_temperature"] = self._data.wiserhub.system.indoor_discomfort_temperature
attrs["outdoor_discomfort_temperature"] = self._data.wiserhub.system.outdoor_discomfort_temperature

return attrs


Expand Down

0 comments on commit 5b1467a

Please sign in to comment.