Fix swapped variables deprecation in log message (#37901)

This commit is contained in:
Franck Nijhof 2020-07-16 10:08:05 +02:00 committed by GitHub
parent 16e5d02794
commit 93c6a9cd96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -511,8 +511,8 @@ async def async_process_ha_core_config(hass: HomeAssistant, config: Dict) -> Non
elif LEGACY_CONF_WHITELIST_EXTERNAL_DIRS in config: elif LEGACY_CONF_WHITELIST_EXTERNAL_DIRS in config:
_LOGGER.warning( _LOGGER.warning(
"Key %s has been replaced with %s. Please update your config", "Key %s has been replaced with %s. Please update your config",
CONF_ALLOWLIST_EXTERNAL_DIRS,
LEGACY_CONF_WHITELIST_EXTERNAL_DIRS, LEGACY_CONF_WHITELIST_EXTERNAL_DIRS,
CONF_ALLOWLIST_EXTERNAL_DIRS,
) )
hac.allowlist_external_dirs.update( hac.allowlist_external_dirs.update(
set(config[LEGACY_CONF_WHITELIST_EXTERNAL_DIRS]) set(config[LEGACY_CONF_WHITELIST_EXTERNAL_DIRS])