Skip to content

Commit 8a7ffdf

Browse files
committed
Add comments
1 parent e2d5c88 commit 8a7ffdf

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,6 +975,7 @@ def _get_appliance_data(self, d_id: str) -> DeviceData:
975975
self.smile_name in ("Adam", "Smile Anna") and self._on_off_device
976976
):
977977
data["heating_state"] = data["c_heating_state"]
978+
# Heating is not active when intended_boiler_temperature is 0
978979
if (
979980
"intended_boiler_temperature" in data
980981
and data["intended_boiler_temperature"] == 0
@@ -1427,6 +1428,7 @@ def _update_device_with_dicts(
14271428
if self._opentherm_device or self._on_off_device:
14281429
bs_dict[key] = value # type: ignore[literal-required]
14291430
for item in SENSORS:
1431+
# Filter for actuator_functionalities, they are not sensors
14301432
if item == key and not isinstance(value, dict):
14311433
data.pop(key) # type: ignore [misc]
14321434
s_dict[key] = value # type: ignore[literal-required]

0 commit comments

Comments
 (0)