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:
parent
7ec7e51f70
commit
fe1840f901
27 changed files with 304 additions and 324 deletions
|
@ -399,14 +399,6 @@ async def async_setup(hass: HomeAssistantType, config: ConfigType) -> bool:
|
|||
conf = dict(conf)
|
||||
|
||||
if CONF_EMBEDDED in conf or CONF_BROKER not in conf:
|
||||
if (conf.get(CONF_PASSWORD) is None and
|
||||
config.get('http', {}).get('api_password') is not None):
|
||||
_LOGGER.error(
|
||||
"Starting from release 0.76, the embedded MQTT broker does not"
|
||||
" use api_password as default password anymore. Please set"
|
||||
" password configuration. See https://home-assistant.io/docs/"
|
||||
"mqtt/broker#embedded-broker for details")
|
||||
return False
|
||||
|
||||
broker_config = await _async_setup_server(hass, config)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue