From e7be2bfd0d2b95d339269f8aa0b740d2b779b251 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 27 Nov 2025 10:14:20 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- supervisor/addons/build.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/supervisor/addons/build.py b/supervisor/addons/build.py index 3d6e26fc7..0219d4d56 100644 --- a/supervisor/addons/build.py +++ b/supervisor/addons/build.py @@ -129,8 +129,9 @@ class AddonBuild(FileConfiguration, CoreSysAttributes): def get_docker_config_json(self) -> str | None: """Generate Docker config.json content with registry credentials for base image. - Returns JSON string with credentials, or None if no credentials needed. - Must be run in executor. + Returns a JSON string with registry credentials for the base image's registry, + or None if no matching registry is configured. + """ if not self.sys_docker.config.registries: return None