mirror of
https://github.com/home-assistant/core.git
synced 2026-09-28 02:18:10 -04:00
Reduce number of columns selected for logbook (#91718)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user