Expose panel update (#482)

* Update __init__.py

* Update setup.py

* Update security.py

* Update setup.py

* Update __init__.py

* Update setup.py

* Update __init__.py
This commit is contained in:
Pascal Vizeli
2018-05-28 23:16:03 +02:00
committed by GitHub
parent bc0835963d
commit efb1a24b8f
3 changed files with 13 additions and 15 deletions

View File

@@ -35,11 +35,10 @@ class SecurityMiddleware(CoreSysAttributes):
_LOGGER.debug("Passthrough %s", request.path)
return await handler(request)
# Need to be removed later
# Unknown API access
if not hassio_token:
_LOGGER.warning("Invalid token for access %s", request.path)
request[REQUEST_FROM] = 'UNKNOWN'
return await handler(request)
raise HTTPUnauthorized()
# Home-Assistant
if hassio_token == self.sys_homeassistant.uuid: