mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +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}
|
override = {k: entry.data[k] for k in shared_keys}
|
||||||
if CONF_PASSWORD in override:
|
if CONF_PASSWORD in override:
|
||||||
override[CONF_PASSWORD] = "********"
|
override[CONF_PASSWORD] = "********"
|
||||||
_LOGGER.info(
|
_LOGGER.warning(
|
||||||
"Data in your configuration entry is going to override your "
|
"Deprecated configuration settings found in configuration.yaml. "
|
||||||
"configuration.yaml: %s",
|
"These settings from your configuration entry will override: %s",
|
||||||
override,
|
override,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1248,7 +1248,8 @@ async def test_setup_override_configuration(hass, caplog, tmp_path):
|
|||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
assert (
|
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
|
in caplog.text
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user