Skip to content

Commit cd818c7

Browse files
committed
Small reorder
1 parent 2ee7416 commit cd818c7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

plugwise/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,13 @@ def _all_device_data(self) -> None:
9191
"""
9292
for device_id, device in self.gw_devices.items():
9393
data = self._get_device_data(device_id)
94+
device.update(data)
9495
# Add plugwise notification binary_sensor to the relevant gateway
9596
if device_id == self.gateway_id and (
9697
self._is_thermostat
9798
or (not self._smile_legacy and self.smile_type == "power")
9899
):
99-
data["binary_sensors"]["plugwise_notification"] = False
100-
101-
device.update(data)
100+
device["binary_sensors"]["plugwise_notification"] = False
102101

103102
# Update for cooling
104103
if device["dev_class"] in ZONE_THERMOSTATS:
@@ -528,7 +527,6 @@ async def async_update(self) -> PlugwiseData:
528527
data["binary_sensors"]["plugwise_notification"] = bool(
529528
self._notifications
530529
)
531-
532530
device.update(data)
533531

534532
# Update for cooling

0 commit comments

Comments
 (0)