This commit is contained in:
Pascal Vizeli 2017-07-11 22:11:25 +02:00
parent 5ebf2068b2
commit 421b380043
2 changed files with 6 additions and 2 deletions

View File

@ -96,7 +96,7 @@ class HassIO(object):
now=True) now=True)
# Load homeassistant # Load homeassistant
await self.homeassistant.prepare(): await self.homeassistant.prepare()
# Load addons # Load addons
await self.addons.prepare() await self.addons.prepare()

View File

@ -260,9 +260,13 @@ class DockerBase(object):
if not self._install(tag): if not self._install(tag):
return False return False
# cleanup old stuff # run or cleanup container
if was_running: if was_running:
self._run() self._run()
else:
self._stop()
# cleanup images
self._cleanup() self._cleanup()
return True return True