Skip to content

Commit 5516988

Browse files
committed
Remove double code
1 parent 0f194ed commit 5516988

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

plugwise/smile.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ class SmileData(SmileHelper):
5454
def update_for_cooling(self, devices: dict[str, DeviceData]) -> None:
5555
"""Helper-function for adding/updating various cooling-related values."""
5656
for _, device in devices.items():
57-
# For Anna or Adama + cooling, modify cooling_state based on provided info by Plugwise
58-
if device["dev_class"] == "heater_central" and self._cooling_present:
59-
device["binary_sensors"]["cooling_state"] = False
60-
if self._cooling_active:
61-
device["binary_sensors"]["cooling_state"] = True
62-
6357
# For Adam + on/off cooling, modify heating_state and cooling_state
6458
# based on provided info by Plugwise
6559
if (

0 commit comments

Comments
 (0)