From de8a241e7292bdedb54c87c1f06a2f8ef260439e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Tue, 15 Jun 2021 15:06:40 +0200 Subject: [PATCH] When validating add-ons transform core-addons url (#2960) --- supervisor/store/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/supervisor/store/__init__.py b/supervisor/store/__init__.py index 83e902782..4526d0575 100644 --- a/supervisor/store/__init__.py +++ b/supervisor/store/__init__.py @@ -3,6 +3,7 @@ import asyncio import logging from typing import Dict, List +from ..const import URL_HASSIO_ADDONS from ..coresys import CoreSys, CoreSysAttributes from ..exceptions import StoreGitError, StoreJobError, StoreNotFound from ..jobs.decorator import Job, JobCondition @@ -76,6 +77,9 @@ class StoreManager(CoreSysAttributes): async def _add_repository(url: str, step: int): """Add a repository.""" job.update(progress=job.progress + step, stage=f"Checking {url} started") + if url == URL_HASSIO_ADDONS: + url = StoreType.CORE + repository = Repository(self.coresys, url) # Load the repository