From 39eaa7fc8d71018fa5ec81b856ace7086e9260e1 Mon Sep 17 00:00:00 2001 From: Jason Hu Date: Mon, 1 Apr 2019 17:43:29 -0700 Subject: [PATCH] Add trusted networks deprecating warning (#22487) * Add trusted networks deprecating warning * Update auth.py * Update auth.py * Update auth.py * Update auth.py * Tweak --- homeassistant/components/http/auth.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/homeassistant/components/http/auth.py b/homeassistant/components/http/auth.py index 4736ef12391..7b8508894ce 100644 --- a/homeassistant/components/http/auth.py +++ b/homeassistant/components/http/auth.py @@ -190,6 +190,12 @@ def setup_auth(hass, app): elif (trusted_networks and await async_validate_trusted_networks(request)): + _LOGGER.warning( + 'Access from trusted networks without auth token is going to ' + 'be removed in Home Assistant 0.96. Configure the trusted ' + 'networks auth provider or use long-lived access tokens to ' + 'access %s from %s', + request.path, request[KEY_REAL_IP]) authenticated = True elif (support_legacy and HTTP_HEADER_HA_AUTH in request.headers and