Fix warning (#21538)

pull/21712/head
Jason Hu 2019-02-28 10:10:21 -08:00 committed by Paulus Schoutsen
parent b05062e9d9
commit 97b93bcf7b
1 changed files with 3 additions and 0 deletions

View File

@ -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."