Skip to content

Commit aa90b78

Browse files
committed
Notifications are not supported for legacy devices
1 parent 275cacd commit aa90b78

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

plugwise/legacy/data.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,9 @@ def _update_gw_devices(self) -> None:
2525
"""
2626
for device_id, device in self.gw_devices.items():
2727
data = self._get_device_data(device_id)
28-
self._add_or_update_notifications(device_id, device, data)
2928
device.update(data)
3029
remove_empty_platform_dicts(device)
3130

32-
def _add_or_update_notifications(
33-
self, device_id: str, device: DeviceData, data: DeviceData
34-
) -> None:
35-
"""Helper-function adding or updating the Plugwise notifications."""
36-
if (
37-
device_id == self.gateway_id and self._is_thermostat
38-
) or (
39-
"binary_sensors" in device
40-
and "plugwise_notification" in device["binary_sensors"]
41-
):
42-
data["binary_sensors"]["plugwise_notification"] = bool(self._notifications)
43-
self._count += 1
44-
4531
def _all_device_data(self) -> None:
4632
"""Helper-function for get_all_devices().
4733

0 commit comments

Comments
 (0)