We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2af0d29 commit 36b22b5Copy full SHA for 36b22b5
plugwise/smile.py
@@ -183,9 +183,13 @@ def _device_data_adam(
183
Determine Adam device data.
184
"""
185
# 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
+ if (
+ self.smile_name == "Adam"
+ 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
193
194
return device_data
195
0 commit comments