1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-20 02:18:59 +00:00

Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Stefan Agner
2025-11-27 10:14:20 +01:00
committed by GitHub
parent 8486354eba
commit e7be2bfd0d

View File

@@ -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