Reduce number of columns selected for logbook (#91718)

This commit is contained in:
J. Nick Koston
2023-04-22 14:25:22 +02:00
committed by GitHub
parent 34b824a27b
commit b76551cf35
5 changed files with 20 additions and 33 deletions
+2 -3
View File
@@ -29,7 +29,7 @@ class MockRow:
):
"""Init the fake row."""
self.event_type = event_type
self.shared_data = json.dumps(data, cls=JSONEncoder)
self.event_data = json.dumps(data, cls=JSONEncoder)
self.data = data
self.time_fired = dt_util.utcnow()
self.time_fired_ts = dt_util.utc_to_timestamp(self.time_fired)
@@ -42,8 +42,7 @@ class MockRow:
self.context_id_bin = ulid_to_bytes_or_none(context.id) if context else None
self.state = None
self.entity_id = None
self.state_id = None
self.event_id = None
self.row_id = None
self.shared_attrs = None
self.attributes = None
self.context_only = False
-1
View File
@@ -352,7 +352,6 @@ def create_state_changed_event_from_old_new(
row.context_id_bin = None
row.friendly_name = None
row.icon = None
row.old_format_icon = None
row.context_user_id_bin = None
row.context_parent_id_bin = None
row.old_state_id = old_state and 1