mirror of
https://github.com/home-assistant/core.git
synced 2025-11-05 17:09:32 +00:00
Deprecate http.api_password (#21884)
* Deprecated http.api_password * Deprecated ApiConfig.api_password GitHub Drafted PR would trigger CI after changed it to normal PR. I have to commit a comment change to trigger it * Trigger CI * Adjust if- elif chain in auth middleware
This commit is contained in:
committed by
Paulus Schoutsen
parent
7ec7e51f70
commit
fe1840f901
@@ -99,12 +99,12 @@ async def async_from_config_dict(config: Dict[str, Any],
|
||||
"This may cause issues")
|
||||
|
||||
core_config = config.get(core.DOMAIN, {})
|
||||
has_api_password = bool(config.get('http', {}).get('api_password'))
|
||||
api_password = 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, trusted_networks)
|
||||
hass, core_config, 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