mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +00:00
Fix logbook crashing on custom state_changed events
This commit is contained in:
parent
8cd1c42e80
commit
1771f8b1b3
@ -132,7 +132,7 @@ def humanify(events):
|
|||||||
# Process events
|
# Process events
|
||||||
for event in events_batch:
|
for event in events_batch:
|
||||||
if event.event_type == EVENT_STATE_CHANGED:
|
if event.event_type == EVENT_STATE_CHANGED:
|
||||||
entity_id = event.data['entity_id']
|
entity_id = event.data.get('entity_id')
|
||||||
|
|
||||||
if entity_id is None:
|
if entity_id is None:
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user