mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Set backup manager state to completed when restore is finished (#134283)
This commit is contained in:
@@ -829,6 +829,9 @@ class BackupManager:
|
||||
restore_folders=restore_folders,
|
||||
restore_homeassistant=restore_homeassistant,
|
||||
)
|
||||
self.async_on_backup_event(
|
||||
RestoreBackupEvent(stage=None, state=RestoreBackupState.COMPLETED)
|
||||
)
|
||||
except Exception:
|
||||
self.async_on_backup_event(
|
||||
RestoreBackupEvent(stage=None, state=RestoreBackupState.FAILED)
|
||||
|
||||
Reference in New Issue
Block a user