From 6e3ec97acfc51a660e8257d18c5fecfc265eddd1 Mon Sep 17 00:00:00 2001 From: Jason Hu <awarecan@users.noreply.github.com> Date: Fri, 13 Jul 2018 00:19:13 -0700 Subject: [PATCH] Include request.path in legacy api password warning message (#15438) --- homeassistant/components/http/auth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/http/auth.py b/homeassistant/components/http/auth.py index a232d9295a4..2cc62dce38e 100644 --- a/homeassistant/components/http/auth.py +++ b/homeassistant/components/http/auth.py @@ -27,7 +27,8 @@ def setup_auth(app, trusted_networks, use_auth, if use_auth and (HTTP_HEADER_HA_AUTH in request.headers or DATA_API_PASSWORD in request.query): - _LOGGER.warning('Please use access_token instead api_password.') + _LOGGER.warning('Please change to use bearer token access %s', + request.path) legacy_auth = (not use_auth or support_legacy) and api_password if (hdrs.AUTHORIZATION in request.headers and -- GitLab