Skip to content

Commit e43ec38

Browse files
committed
fix: ref miss in github action PR check
1 parent 0b17bf9 commit e43ec38

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

custom_components/hacs/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async def _async_initialize_integration(
8686
if hacs.core.ha_version is None:
8787
hacs.core.ha_version = AwesomeVersion(HAVERSION)
8888

89-
## Legacy GitHub client
89+
# Legacy GitHub client
9090
hacs.github = GitHub(
9191
hacs.configuration.token,
9292
clientsession,
@@ -96,7 +96,7 @@ async def _async_initialize_integration(
9696
},
9797
)
9898

99-
## New GitHub client
99+
# New GitHub client
100100
hacs.githubapi = GitHubAPI(
101101
token=hacs.configuration.token,
102102
session=clientsession,

custom_components/hacs/base.py

-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
from .repositories import REPOSITORY_CLASSES
6262
from .repositories.base import HACS_MANIFEST_KEYS_TO_EXPORT, REPOSITORY_KEYS_TO_EXPORT
6363
from .utils.file_system import async_exists
64-
from .utils.json import json_loads
6564
from .utils.logger import LOGGER
6665
from .utils.queue_manager import QueueManager
6766
from .utils.store import async_load_from_store, async_save_to_store

custom_components/hacs/repositories/base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ async def common_validate(self, ignore_issues: bool = False) -> None:
476476

477477
# Get the content of hacs.json
478478
if RepositoryFile.HACS_JSON in [x.filename for x in self.tree]:
479-
if manifest := await self.async_get_hacs_json():
479+
if manifest := await self.get_hacs_json(version=self.ref):
480480
self.repository_manifest = HacsManifest.from_dict(manifest)
481481
self.data.update_data(
482482
self.repository_manifest.to_dict(),
@@ -539,7 +539,7 @@ async def common_update(self, ignore_issues=False, force=False, skip_releases=Fa
539539

540540
# Get the content of hacs.json
541541
if RepositoryFile.HACS_JSON in [x.filename for x in self.tree]:
542-
if manifest := await self.async_get_hacs_json():
542+
if manifest := await self.get_hacs_json(version=self.ref):
543543
self.repository_manifest = HacsManifest.from_dict(manifest)
544544
self.data.update_data(
545545
self.repository_manifest.to_dict(),

custom_components/hacs/repositories/integration.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ async def validate_repository(self):
9292
self.content.path.remote = f"custom_components/{name}"
9393

9494
# Get the content of manifest.json
95-
if manifest := await self.async_get_integration_manifest():
95+
if manifest := await self.async_get_integration_manifest(ref=self.ref):
9696
try:
9797
self.integration_manifest = manifest
9898
self.data.authors = manifest.get("codeowners", [])
@@ -133,7 +133,7 @@ async def update_repository(self, ignore_issues=False, force=False):
133133
self.content.path.remote = f"custom_components/{name}"
134134

135135
# Get the content of manifest.json
136-
if manifest := await self.async_get_integration_manifest():
136+
if manifest := await self.async_get_integration_manifest(ref=self.ref):
137137
try:
138138
self.integration_manifest = manifest
139139
self.data.authors = manifest.get("codeowners", [])

0 commit comments

Comments
 (0)