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 b82819d commit aba0122Copy full SHA for aba0122
plugwise/__init__.py
@@ -531,11 +531,13 @@ async def async_update(self) -> PlugwiseData:
531
532
for device_id, device in self.gw_devices.items():
533
data = self._get_device_data(device_id)
534
- if "binary_sensors" in device:
535
- if "plugwise_notification" in device["binary_sensors"]:
536
- data["binary_sensors"]["plugwise_notification"] = bool(
537
- self._notifications
538
- )
+ if (
+ "binary_sensors" in device
+ and "plugwise_notification" in device["binary_sensors"]
+ ):
+ data["binary_sensors"]["plugwise_notification"] = bool(
539
+ self._notifications
540
+ )
541
542
device.update(data)
543
0 commit comments