Skip to content

Commit 36b22b5

Browse files
committed
More merging
1 parent 2af0d29 commit 36b22b5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

plugwise/smile.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,13 @@ def _device_data_adam(
183183
Determine Adam device data.
184184
"""
185185
# Indicate heating_state based on valves being open in case of city-provided heating
186-
if self.smile_name == "Adam" and details.get("dev_class") == "heater_central":
187-
if self._on_off_device and self._heating_valves() is not None:
188-
device_data["heating_state"] = self._heating_valves() != 0
186+
if (
187+
self.smile_name == "Adam"
188+
and details.get("dev_class") == "heater_central"
189+
and self._on_off_device
190+
and self._heating_valves() is not None
191+
):
192+
device_data["heating_state"] = self._heating_valves() != 0
189193

190194
return device_data
191195

0 commit comments

Comments
 (0)