mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
guard against missing topic (#36108)
This commit is contained in:
parent
12fb6a85d5
commit
b0012bd5a6
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user