Fix logbook crashing on custom state_changed events
This commit is contained in:
1 parent
8cd1c42e80
commit
1771f8b1b3
1 file changed
+1
-1
@@ -132,7 +132,7 @@ def humanify(events):
|
||||
# Process events
|
||||
for event in events_batch:
|
||||
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:
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user