Skip to content

Commit 71d3158

Browse files
committed
Add comment
1 parent a2cf388 commit 71d3158

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugwise/helper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -975,10 +975,12 @@ def _get_appliance_data(self, d_id: str) -> DeviceData:
975975
self._cooling_active = data["elga_status_code"] == 8
976976
data.pop("elga_status_code", None)
977977
# Loria/Thermastate: look at cooling_state, not at cooling_enabled, not available on R32!
978+
# Anna + Elga >= 4.3.7: the Elga cooling-enabled state is shown but there is no cooling-switch
978979
for item in ("cooling_ena_switch", "cooling_enabled"):
979980
if item in data:
980981
self._cooling_enabled = data[item]
981982
self._cooling_active = data["cooling_state"]
983+
982984
if all(item in data for item in ("cooling_ena_switch", "cooling_enabled")):
983985
data.pop("cooling_enabled")
984986

0 commit comments

Comments
 (0)