Test string timestamps are wiped after migration to schema version 32 (#125091)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Erik Montnemery 2024-09-02 21:33:35 +02:00 committed by GitHub
parent cd89db9bb6
commit 606524f9e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -192,9 +192,12 @@ async def test_migrate_times(
assert len(events_result) == 1
assert events_result[0].time_fired_ts == now_timestamp
assert events_result[0].time_fired is None
assert len(states_result) == 1
assert states_result[0].last_changed_ts == one_second_past_timestamp
assert states_result[0].last_updated_ts == now_timestamp
assert states_result[0].last_changed is None
assert states_result[0].last_updated is None
def _get_events_index_names():
with session_scope(hass=hass) as session: