mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-21 08:06:30 +00:00
When validating add-ons transform core-addons url (#2960)
This commit is contained in:
parent
a4a0b43d91
commit
de8a241e72
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user