diff --git a/custom_components/hacs/__init__.py b/custom_components/hacs/__init__.py index 0c20cdde1b5..47ab79cd32b 100644 --- a/custom_components/hacs/__init__.py +++ b/custom_components/hacs/__init__.py @@ -86,7 +86,7 @@ async def _async_initialize_integration( if hacs.core.ha_version is None: hacs.core.ha_version = AwesomeVersion(HAVERSION) - ## Legacy GitHub client + # Legacy GitHub client hacs.github = GitHub( hacs.configuration.token, clientsession, @@ -96,7 +96,7 @@ async def _async_initialize_integration( }, ) - ## New GitHub client + # New GitHub client hacs.githubapi = GitHubAPI( token=hacs.configuration.token, session=clientsession, diff --git a/custom_components/hacs/base.py b/custom_components/hacs/base.py index a29e43defb4..aac9de2f7a1 100644 --- a/custom_components/hacs/base.py +++ b/custom_components/hacs/base.py @@ -61,7 +61,6 @@ from .repositories import REPOSITORY_CLASSES from .repositories.base import HACS_MANIFEST_KEYS_TO_EXPORT, REPOSITORY_KEYS_TO_EXPORT from .utils.file_system import async_exists -from .utils.json import json_loads from .utils.logger import LOGGER from .utils.queue_manager import QueueManager from .utils.store import async_load_from_store, async_save_to_store diff --git a/custom_components/hacs/repositories/base.py b/custom_components/hacs/repositories/base.py index 6b4ce16c932..b2f0628c956 100644 --- a/custom_components/hacs/repositories/base.py +++ b/custom_components/hacs/repositories/base.py @@ -476,7 +476,7 @@ async def common_validate(self, ignore_issues: bool = False) -> None: # Get the content of hacs.json if RepositoryFile.HACS_JSON in [x.filename for x in self.tree]: - if manifest := await self.async_get_hacs_json(): + if manifest := await self.get_hacs_json(version=self.ref): self.repository_manifest = HacsManifest.from_dict(manifest) self.data.update_data( self.repository_manifest.to_dict(), diff --git a/custom_components/hacs/repositories/integration.py b/custom_components/hacs/repositories/integration.py index 8456ce697d9..d88f10c832a 100644 --- a/custom_components/hacs/repositories/integration.py +++ b/custom_components/hacs/repositories/integration.py @@ -92,7 +92,7 @@ async def validate_repository(self): self.content.path.remote = f"custom_components/{name}" # Get the content of manifest.json - if manifest := await self.async_get_integration_manifest(): + if manifest := await self.get_integration_manifest(version=self.ref): try: self.integration_manifest = manifest self.data.authors = manifest.get("codeowners", [])