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( {