Skip to content

Commit 2c1d3cb

Browse files
autoblackbouwew
authored andcommitted
fixup: daily_full_update Python code reformatted using Black
1 parent c7f852a commit 2c1d3cb

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

plugwise/__init__.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,23 @@ def update_for_cooling(self, device: DeviceData) -> DeviceData:
8888

8989
return device
9090

91-
9291
def _update_gw_devices(self) -> None:
9392
"""Helper-function for _all_device_data() and async_update().
9493
9594
Collect data for each device and add to self.gw_devices.
96-
"""
95+
"""
9796
for device_id, device in self.gw_devices.items():
9897
data = self._get_device_data(device_id)
99-
if ("binary_sensors" in device and "plugwise_notification" in device["binary_sensors"]) or (device_id == self.gateway_id and (self._is_thermostat or (self.smile_type == "power" and not self._smile_legacy))):
98+
if (
99+
"binary_sensors" in device
100+
and "plugwise_notification" in device["binary_sensors"]
101+
) or (
102+
device_id == self.gateway_id
103+
and (
104+
self._is_thermostat
105+
or (self.smile_type == "power" and not self._smile_legacy)
106+
)
107+
):
100108
data["binary_sensors"]["plugwise_notification"] = bool(
101109
self._notifications
102110
)
@@ -108,7 +116,6 @@ def _update_gw_devices(self) -> None:
108116

109117
remove_empty_platform_dicts(device)
110118

111-
112119
def _all_device_data(self) -> None:
113120
"""Helper-function for get_all_devices().
114121

0 commit comments

Comments
 (0)