From 7593f857e8d58d02695214d1afdf6fdbabc6597f Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Fri, 23 May 2025 14:29:28 +0200 Subject: [PATCH] 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. --- supervisor/store/data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/supervisor/store/data.py b/supervisor/store/data.py index d189e3a46..85a779ea2 100644 --- a/supervisor/store/data.py +++ b/supervisor/store/data.py @@ -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