guard against missing topic (#36108)
parent
a1eb513bbc
commit
79ed8b03dc
|
@ -147,6 +147,10 @@ class EventManager:
|
||||||
async def async_parse_messages(self, messages) -> None:
|
async def async_parse_messages(self, messages) -> None:
|
||||||
"""Parse notification message."""
|
"""Parse notification message."""
|
||||||
for msg in messages:
|
for msg in messages:
|
||||||
|
# Guard against empty message
|
||||||
|
if not msg.Topic:
|
||||||
|
continue
|
||||||
|
|
||||||
topic = msg.Topic._value_1
|
topic = msg.Topic._value_1
|
||||||
parser = PARSERS.get(topic)
|
parser = PARSERS.get(topic)
|
||||||
if not parser:
|
if not parser:
|
||||||
|
|
Loading…
Reference in New Issue