Bugfix Proxy with new token (#690)

* Update proxy.py

* Update security.py
This commit is contained in:
Pascal Vizeli
2018-09-09 23:47:35 +02:00
committed by GitHub
parent 5cbdbffbb2
commit dd25c29544
2 changed files with 12 additions and 4 deletions

View File

@@ -51,7 +51,7 @@ class SecurityMiddleware(CoreSysAttributes):
raise HTTPUnauthorized()
# Home-Assistant
# UUID check need removed with 130
# UUID check need removed with 131
if hassio_token in (self.sys_homeassistant.uuid,
self.sys_homeassistant.hassio_token):
_LOGGER.debug("%s access from Home-Assistant", request.path)
@@ -66,7 +66,7 @@ class SecurityMiddleware(CoreSysAttributes):
addon = None
if hassio_token and not request_from:
addon = self.sys_addons.from_token(hassio_token)
# Need removed with 130
# Need removed with 131
if not addon:
addon = self.sys_addons.from_uuid(hassio_token)