some cleanups / auto remove old addons.

This commit is contained in:
pvizeli
2017-04-13 16:15:50 +02:00
committed by Pascal Vizeli
parent dbc080c24d
commit 40e5e6eb9d
10 changed files with 56 additions and 31 deletions

View File

@@ -40,10 +40,10 @@ class APIHomeAssistant(object):
version = body.get(ATTR_VERSION, self.config.current_homeassistant)
if self.dock_hass.in_progress:
raise RuntimeError("Other task is in progress.")
raise RuntimeError("Other task is in progress")
if version == self.dock_hass.version:
raise RuntimeError("%s is already in use.", version)
raise RuntimeError("Version is already in use")
return await asyncio.shield(
self.dock_hass.update(version), loop=self.loop)