Skip to content

Commit 6b7d60d

Browse files
author
autoblack
committed
fixup: smile_private Python code reformatted using Black
1 parent 2490b22 commit 6b7d60d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

plugwise/helper.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,9 @@ def _get_appliance_data(self, d_id):
670670

671671
return data
672672

673-
def _rank_thermostat(self, thermo_matching, loc_id, appliance_id, appliance_details):
673+
def _rank_thermostat(
674+
self, thermo_matching, loc_id, appliance_id, appliance_details
675+
):
674676
"""Helper-function for _scan_thermostats().
675677
Rank the thermostat based on appliance_details: master or slave."""
676678
appl_class = appliance_details["class"]

plugwise/smile.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,10 @@ def _device_data_adam(self, details, device_data):
328328
# Adam: indicate heating_state based on valves being open in case of city-provided heating
329329
if self.smile_name == "Adam":
330330
if details["class"] == "gateway":
331-
if not self._active_device_present and self._heating_valves() is not None:
331+
if (
332+
not self._active_device_present
333+
and self._heating_valves() is not None
334+
):
332335
device_data["heating_state"] = True
333336
if self._heating_valves() == 0:
334337
device_data["heating_state"] = False

0 commit comments

Comments
 (0)