diff --git a/homeassistant/components/onvif/event.py b/homeassistant/components/onvif/event.py index 7a0113177c475b..3888db4fa8e9b8 100644 --- a/homeassistant/components/onvif/event.py +++ b/homeassistant/components/onvif/event.py @@ -147,6 +147,10 @@ async def async_pull_messages(self, _now: dt = None) -> None: 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: