mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-08 01:36:29 +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):
|
||||
"""Update homeassistant."""
|
||||
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:
|
||||
raise RuntimeError("Version {} is already in use".format(version))
|
||||
|
Loading…
x
Reference in New Issue
Block a user