mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-15 05:06:30 +00:00
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:
parent
87232cf1e4
commit
7593f857e8
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user