diff --git a/homeassistant/components/onvif/event.py b/homeassistant/components/onvif/event.py index 7a0113177c4..3888db4fa8e 100644 --- a/homeassistant/components/onvif/event.py +++ b/homeassistant/components/onvif/event.py @@ -147,6 +147,10 @@ class EventManager: async def async_parse_messages(self, messages) -> None: """Parse notification message.""" for msg in messages: + # Guard against empty message + if not msg.Topic: + continue + topic = msg.Topic._value_1 parser = PARSERS.get(topic) if not parser: