mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 00:37:53 +00:00
Fix UnboundLocalError in recorder (#125419)
This commit is contained in:
parent
883e33e72a
commit
09989e6184
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user