From c39d6357f310600c6c24b5004c8d2dc63dfad0e2 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Tue, 8 Aug 2017 18:31:37 +0200 Subject: [PATCH] fix parameter --- hassio/api/homeassistant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hassio/api/homeassistant.py b/hassio/api/homeassistant.py index d16be1276..83415b6a0 100644 --- a/hassio/api/homeassistant.py +++ b/hassio/api/homeassistant.py @@ -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))