From 2abe2f0618e95922b7e4639c1d71ab77d561d93c Mon Sep 17 00:00:00 2001 From: Erik Date: Fri, 3 Jan 2025 13:49:44 +0100 Subject: [PATCH] Avoid early COMPLETED event when restoring backup --- homeassistant/components/backup/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/backup/manager.py b/homeassistant/components/backup/manager.py index 4d509003a218ff..ce1ba7bbc900bf 100644 --- a/homeassistant/components/backup/manager.py +++ b/homeassistant/components/backup/manager.py @@ -1387,7 +1387,7 @@ def _write_restore_file() -> None: ) 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: