1
0
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:
J. Nick Koston
2022-05-13 17:56:16 -04:00
committed by GitHub
parent e06ea5e03e
commit 663f6f8340
3 changed files with 85 additions and 85 deletions

View File

@@ -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