Ensure flume sees the most recent notifications (#120290)

This commit is contained in:
tronikos 2024-06-24 01:08:51 -07:00 committed by GitHub
parent 0dff7e8a55
commit deee10813c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -98,7 +98,7 @@ class FlumeNotificationDataUpdateCoordinator(DataUpdateCoordinator[None]):
# The related binary sensors (leak detected, high flow, low battery)
# will be active until the notification is deleted in the Flume app.
self.notifications = pyflume.FlumeNotificationList(
self.auth, read=None
self.auth, read=None, sort_direction="DESC"
).notification_list
_LOGGER.debug("Notifications %s", self.notifications)