mirror of
https://github.com/home-assistant/core.git
synced 2025-08-09 15:45:08 +02:00
speed up
This commit is contained in:
@@ -1312,7 +1312,7 @@ def migrate_event_type_ids(instance: Recorder) -> bool:
|
||||
for event_type in missing_event_types
|
||||
]
|
||||
session.add_all(missing_db_event_types)
|
||||
session.commit()
|
||||
session.flush() # Assign ids
|
||||
for db_event_type in missing_db_event_types:
|
||||
assert db_event_type.event_type is not None
|
||||
event_type_to_id[
|
||||
|
Reference in New Issue
Block a user