mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-09 18:26:30 +00:00
fix last version of HomeAssistant (#140)
This commit is contained in:
parent
6a74893a30
commit
d1b30a0e95
@ -63,7 +63,7 @@ class APIHomeAssistant(object):
|
|||||||
async def update(self, request):
|
async def update(self, request):
|
||||||
"""Update homeassistant."""
|
"""Update homeassistant."""
|
||||||
body = await api_validate(SCHEMA_VERSION, request)
|
body = await api_validate(SCHEMA_VERSION, request)
|
||||||
version = body.get(ATTR_VERSION, self.config.last_homeassistant)
|
version = body.get(ATTR_VERSION, self.homeassistant.last_homeassistant)
|
||||||
|
|
||||||
if version == self.homeassistant.version:
|
if version == self.homeassistant.version:
|
||||||
raise RuntimeError("Version {} is already in use".format(version))
|
raise RuntimeError("Version {} is already in use".format(version))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user