Fix add-on config parse messages (#5909)

With #5897 we renamed addon to addon_config and vis-versa. The log
messages were still using the previous variable names leading to
UnboundLocalError.

Fix the log messages to use the correct variable names.
This commit is contained in:
Stefan Agner 2025-05-23 14:29:28 +02:00 committed by GitHub
parent 87232cf1e4
commit 7593f857e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -197,7 +197,7 @@ class StoreData(CoreSysAttributes):
addon = read_json_or_yaml_file(addon_config)
except ConfigurationFileError:
_LOGGER.warning(
"Can't read %s from repository %s", addon, repository
"Can't read %s from repository %s", addon_config, repository
)
continue
@ -206,7 +206,7 @@ class StoreData(CoreSysAttributes):
addon = SCHEMA_ADDON_CONFIG(addon)
except vol.Invalid as ex:
_LOGGER.warning(
"Can't read %s: %s", addon, humanize_error(addon, ex)
"Can't read %s: %s", addon_config, humanize_error(addon, ex)
)
continue