mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 18:39:30 +00:00
Enable auth by default 🙈 (#16107)
* Enable auth by default * Only default legacy_api_password if api_password set * Tweak bool check * typing
This commit is contained in:
@@ -87,9 +87,11 @@ 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'))
|
||||
|
||||
try:
|
||||
await conf_util.async_process_ha_core_config(hass, core_config)
|
||||
await conf_util.async_process_ha_core_config(
|
||||
hass, core_config, has_api_password)
|
||||
except vol.Invalid as ex:
|
||||
conf_util.async_log_exception(ex, 'homeassistant', core_config, hass)
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user