mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 14:57:09 +00:00
Avoid early COMPLETED event when restoring backup (#134546)
This commit is contained in:
parent
8a2f8dc736
commit
336af8b551
@ -1375,7 +1375,7 @@ class CoreBackupReaderWriter(BackupReaderWriter):
|
|||||||
)
|
)
|
||||||
|
|
||||||
await self._hass.async_add_executor_job(_write_restore_file)
|
await self._hass.async_add_executor_job(_write_restore_file)
|
||||||
await self._hass.services.async_call("homeassistant", "restart", {})
|
await self._hass.services.async_call("homeassistant", "restart", blocking=True)
|
||||||
|
|
||||||
|
|
||||||
def _generate_backup_id(date: str, name: str) -> str:
|
def _generate_backup_id(date: str, name: str) -> str:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user