Stop home-assistant only if they will be restored (#377)

This commit is contained in:
Pascal Vizeli 2018-02-23 22:22:38 +01:00 committed by GitHub
parent 697caf553a
commit 433c5cef3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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