MQTT Improve warning override deprecated settings (#67609)

This commit is contained in:
Jan Bouwhuis 2022-03-04 12:39:29 +01:00 committed by GitHub
parent 5f421252a6
commit 5ab4b5d15a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -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,
)

View File

@ -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
)