mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-24 09:36:31 +00:00
Stop home-assistant only if they will be restored (#377)
This commit is contained in:
parent
697caf553a
commit
433c5cef3b
@ -294,7 +294,8 @@ class SnapshotManager(CoreSysAttributes):
|
||||
await self.lock.acquire()
|
||||
|
||||
async with snapshot:
|
||||
if FOLDER_HOMEASSISTANT in folders:
|
||||
# Stop Home-Assistant if they will be restored later
|
||||
if homeassistant and FOLDER_HOMEASSISTANT in folders:
|
||||
await self._homeassistant.stop()
|
||||
|
||||
# Process folders
|
||||
|
Loading…
x
Reference in New Issue
Block a user