mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-08 17:56:33 +00:00
fix parameter
This commit is contained in:
parent
d1b30a0e95
commit
c39d6357f3
@ -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.homeassistant.last_homeassistant)
|
version = body.get(ATTR_VERSION, self.homeassistant.last_version)
|
||||||
|
|
||||||
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