mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-10-09 03:39:39 +00:00
some cleanups / auto remove old addons.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user