From c8289469de5768422ae7251be7036ff242687e1a Mon Sep 17 00:00:00 2001 From: David Vallee Delisle Date: Sun, 16 Jan 2022 04:23:18 -0500 Subject: [PATCH] Only showing notifications that are not seen --- custom_components/hilo/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/hilo/sensor.py b/custom_components/hilo/sensor.py index feea7d94..337c47cb 100644 --- a/custom_components/hilo/sensor.py +++ b/custom_components/hilo/sensor.py @@ -456,7 +456,7 @@ async def _async_update(self): for notification in await self._hilo._api.get_event_notifications( self._hilo.devices.location_id ): - if not notification.get("viewed"): + if notification.get("viewed"): continue self._notifications.append( {