Reduce number of columns selected for logbook (#91718)

This commit is contained in:
J. Nick Koston 2023-04-22 07:25:22 -05:00 committed by GitHub
parent 34b824a27b
commit b76551cf35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 33 deletions

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