From 97b93bcf7bb378f409363bef58d37b53f19776da Mon Sep 17 00:00:00 2001 From: Jason Hu Date: Thu, 28 Feb 2019 10:10:21 -0800 Subject: [PATCH] Fix warning (#21538) --- homeassistant/components/http/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/http/__init__.py b/homeassistant/components/http/__init__.py index f57068081a5..4928ae2ab17 100644 --- a/homeassistant/components/http/__init__.py +++ b/homeassistant/components/http/__init__.py @@ -55,6 +55,9 @@ NO_LOGIN_ATTEMPT_THRESHOLD = -1 def trusted_networks_deprecated(value): """Warn user trusted_networks config is deprecated.""" + if not value: + return value + _LOGGER.warning( "Configuring trusted_networks via the http component has been" " deprecated. Use the trusted networks auth provider instead."