Skip to content

Commit c39d635

Browse files
authored
fix parameter
1 parent d1b30a0 commit c39d635

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hassio/api/homeassistant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async def options(self, request):
6363
async def update(self, request):
6464
"""Update homeassistant."""
6565
body = await api_validate(SCHEMA_VERSION, request)
66-
version = body.get(ATTR_VERSION, self.homeassistant.last_homeassistant)
66+
version = body.get(ATTR_VERSION, self.homeassistant.last_version)
6767

6868
if version == self.homeassistant.version:
6969
raise RuntimeError("Version {} is already in use".format(version))

0 commit comments

Comments
 (0)