Add config for trusted networks auth provider (#21111)
* Add config for trusted networks auth provider * Lint * Fix typing * Fix pylint * Fix lint * Add some log information * Add http.trusted_networks deprecated warning * Remove log info * Lint
This commit is contained in:
1 parent
5c2f997394
commit
7bae76843c
6 files changed
+72
-43
No files matched your search
@@ -86,13 +86,12 @@ async def async_from_config_dict(config: Dict[str, Any],
|
||||
log_no_color)
|
||||
|
||||
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'))
|
||||
has_api_password = bool(config.get('http', {}).get('api_password'))
|
||||
trusted_networks = config.get('http', {}).get('trusted_networks')
|
||||
|
||||
try:
|
||||
await conf_util.async_process_ha_core_config(
|
||||
hass, core_config, has_api_password, has_trusted_networks)
|
||||
hass, core_config, has_api_password, trusted_networks)
|
||||
except vol.Invalid as config_err:
|
||||
conf_util.async_log_exception(
|
||||
config_err, 'homeassistant', core_config, hass)
|
||||
|
||||
Reference in new issue
Block a user