mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Complete refactoring of logbook humanify (#71830)
This commit is contained in:
@@ -323,6 +323,7 @@ def create_state_changed_event_from_old_new(
|
||||
"old_state_id",
|
||||
"shared_attrs",
|
||||
"shared_data",
|
||||
"context_only",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -335,6 +336,7 @@ def create_state_changed_event_from_old_new(
|
||||
row.state = new_state and new_state.get("state")
|
||||
row.entity_id = entity_id
|
||||
row.domain = entity_id and ha.split_entity_id(entity_id)[0]
|
||||
row.context_only = False
|
||||
row.context_id = None
|
||||
row.context_user_id = None
|
||||
row.context_parent_id = None
|
||||
|
||||
Reference in New Issue
Block a user