Default load trusted_network auth provider if configured trusted networks (#16184)

This commit is contained in:
Jason Hu authored and Paulus Schoutsen committed 2018-08-25 11:09:48 +02:00
1 parent 456aa5a2b2
commit 26a485d43c
3 files changed
+28 -2

No files matched your search

+3 -1
View File
@@ -88,10 +88,12 @@ async def async_from_config_dict(config: Dict[str, Any],
core_config = config.get(core.DOMAIN, {})
has_api_password = bool((config.get('http') or {}).get('api_password'))
has_trusted_networks = bool((config.get('http') or {})
.get('trusted_networks'))
try:
await conf_util.async_process_ha_core_config(
hass, core_config, has_api_password)
hass, core_config, has_api_password, has_trusted_networks)
except vol.Invalid as ex:
conf_util.async_log_exception(ex, 'homeassistant', core_config, hass)
return None