mirror of
https://github.com/home-assistant/core.git
synced 2025-08-09 23:55:07 +02:00
Fix UnboundLocalError in recorder (#125419)
This commit is contained in:
@@ -2594,6 +2594,7 @@ class EventIDPostMigration(BaseRunTimeMigration):
|
||||
# removing the index is the likely all that needs to happen.
|
||||
all_gone = not result
|
||||
|
||||
fk_remove_ok = False
|
||||
if all_gone:
|
||||
# Only drop the index if there are no more event_ids in the states table
|
||||
# ex all NULL
|
||||
|
Reference in New Issue
Block a user