mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-10-23 10:39:39 +00:00
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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user