diff --git a/custom_components/hikvision_next/notifications.py b/custom_components/hikvision_next/notifications.py index 635742d..de1fb72 100644 --- a/custom_components/hikvision_next/notifications.py +++ b/custom_components/hikvision_next/notifications.py @@ -156,6 +156,7 @@ def trigger_sensor(self, xml: str) -> None: def fire_hass_event(self, alert: AlertInfo): """Fire HASS event""" + camera = self.isapi.get_camera_by_id(alert.channel_id) message = { "channel_id": alert.channel_id,