Skip to content

Commit

Permalink
Use supervisor version
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli committed Apr 18, 2017
1 parent 094c596 commit f231d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hassio/api/supervisor.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async def update(self, request):
body = await api_validate(SCHEMA_VERSION, request)
version = body.get(ATTR_VERSION, self.config.current_hassio)

if version == HASSIO_VERSION:
if version == self.supervisor.version:
raise RuntimeError("Version is already in use")

return await asyncio.shield(self.supervisor.update(version))

0 comments on commit f231d54

Please sign in to comment.