From ac60de0360f1b6d907c9945e9daa45e3ea17fe54 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Sat, 17 Feb 2018 16:09:10 +0100 Subject: [PATCH] Update security.py (#365) --- hassio/api/security.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hassio/api/security.py b/hassio/api/security.py index fd867ca4b..2b1da39b8 100644 --- a/hassio/api/security.py +++ b/hassio/api/security.py @@ -11,7 +11,8 @@ _LOGGER = logging.getLogger(__name__) NO_SECURITY_CHECK = set(( re.compile(r"^/homeassistant/api/.*$"), - re.compile(r"^/homeassistant/websocket$") + re.compile(r"^/homeassistant/websocket$"), + re.compile(r"^/supervisor/ping$"), )) @@ -29,7 +30,7 @@ async def security_layer(request, handler): # Need to be removed later if not hassio_token: - _LOGGER.warning("No valid Hass.io token for API access!") + _LOGGER.warning("Invalid token for access %s", request.path) request[REQUEST_FROM] = 'UNKNOWN' return await handler(request)