Skip to content

Commit 74509da

Browse files
committed
Improve helper.py
1 parent e46042e commit 74509da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugwise/helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def __init__(self) -> None:
247247
# 'cooling_state' = on means cooling is active.
248248
###################################################################
249249
self._cooling_active = False
250-
self._cooling_enabled = False
250+
self._cooling_enabled: bool
251251

252252
self.gateway_id: str
253253
self.gw_data: GatewayData = {}
@@ -798,7 +798,7 @@ def _update_elga_cooling(self, data: GwEntityData) -> None:
798798
# Techneco Elga has cooling-capability
799799
self._cooling_present = True
800800
data["model"] = "Generic heater/cooler"
801-
self._cooling_enabled = data["elga_status_code"] in (8, 9)
801+
self._cooling_enabled = data["binary_sensors"]["cooling_enabled"] = data["elga_status_code"] in (8, 9)
802802
data["binary_sensors"]["cooling_state"] = self._cooling_active = (
803803
data["elga_status_code"] == 8
804804
)

0 commit comments

Comments
 (0)