Skip to content

Commit 807d146

Browse files
committed
Guard for overwriting _dhw_allowed_modes
1 parent 77e0503 commit 807d146

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugwise/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ def _get_toggle_state(
508508
if "switches" in data:
509509
data["switches"][name] = state.text == "on"
510510
self._count += 1
511-
if toggle == "domestic_hot_water_comfort_mode":
511+
if toggle == "domestic_hot_water_comfort_mode" and not self._dhw_allowed_modes:
512512
self._dhw_allowed_modes = ["comfort", "eco"]
513513

514514
def _get_plugwise_notifications(self) -> None:

0 commit comments

Comments
 (0)