From 5b1467aa29e80a5cdd0575c5daf302eb041de786 Mon Sep 17 00:00:00 2001 From: LGO44 <95585425+LGO44@users.noreply.github.com> Date: Wed, 8 May 2024 10:03:16 +0200 Subject: [PATCH] add attribute discomfort temperature to switch --- custom_components/wiser/switch.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/custom_components/wiser/switch.py b/custom_components/wiser/switch.py index ec60670..4cf026d 100755 --- a/custom_components/wiser/switch.py +++ b/custom_components/wiser/switch.py @@ -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