mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
MQTT Improve warning override deprecated settings (#67609)
This commit is contained in:
parent
5f421252a6
commit
5ab4b5d15a
@ -615,9 +615,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
override = {k: entry.data[k] for k in shared_keys}
|
||||
if CONF_PASSWORD in override:
|
||||
override[CONF_PASSWORD] = "********"
|
||||
_LOGGER.info(
|
||||
"Data in your configuration entry is going to override your "
|
||||
"configuration.yaml: %s",
|
||||
_LOGGER.warning(
|
||||
"Deprecated configuration settings found in configuration.yaml. "
|
||||
"These settings from your configuration entry will override: %s",
|
||||
override,
|
||||
)
|
||||
|
||||
|
@ -1248,7 +1248,8 @@ async def test_setup_override_configuration(hass, caplog, tmp_path):
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert (
|
||||
"Data in your configuration entry is going to override your configuration.yaml:"
|
||||
"Deprecated configuration settings found in configuration.yaml. "
|
||||
"These settings from your configuration entry will override:"
|
||||
in caplog.text
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user