mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Guard logbook assuming entity ID is a string (#50047)
This commit is contained in:
parent
98ef1e1e82
commit
4cf910affc
@ -647,7 +647,7 @@ def _augment_data_with_context(
|
||||
return
|
||||
|
||||
attr_entity_id = event_data.get(ATTR_ENTITY_ID)
|
||||
if not attr_entity_id or (
|
||||
if not isinstance(attr_entity_id, str) or (
|
||||
event_type in SCRIPT_AUTOMATION_EVENTS and attr_entity_id == entity_id
|
||||
):
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user