Fix Flume leak detected sensor (#98560)

This commit is contained in:
tronikos 2023-08-18 01:07:44 -07:00 committed by GitHub
parent ab9d6ce61a
commit 6b82bf2bc7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,8 +93,11 @@ class FlumeNotificationDataUpdateCoordinator(DataUpdateCoordinator[None]):
def _update_lists(self):
"""Query flume for notification list."""
# Get notifications (read or unread).
# The related binary sensors (leak detected, high flow, low battery)
# will be active until the notification is deleted in the Flume app.
self.notifications: list[dict[str, Any]] = pyflume.FlumeNotificationList(
self.auth, read="true"
self.auth, read=None
).notification_list
_LOGGER.debug("Notifications %s", self.notifications)