mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-17 10:57:03 +00:00
#743 - Trying to fix this.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
"""Class for appdaemon apps in HACS."""
|
||||
from aiogithubapi import AIOGitHubException
|
||||
from aiogithubapi import AIOGitHubAPIException
|
||||
from integrationhelper import Logger
|
||||
|
||||
from .repository import HacsRepository
|
||||
@@ -30,7 +30,7 @@ class HacsAppdaemon(HacsRepository):
|
||||
# Custom step 1: Validate content.
|
||||
try:
|
||||
addir = await self.repository_object.get_contents("apps", self.ref)
|
||||
except AIOGitHubException:
|
||||
except AIOGitHubAPIException:
|
||||
raise HacsException(
|
||||
f"Repostitory structure for {self.ref.replace('tags/','')} is not compliant"
|
||||
)
|
||||
@@ -64,11 +64,9 @@ class HacsAppdaemon(HacsRepository):
|
||||
# Set local path
|
||||
self.content.path.local = self.localpath
|
||||
|
||||
async def update_repository(self):
|
||||
async def update_repository(self, ignore_issues=False):
|
||||
"""Update."""
|
||||
if self.hacs.github.ratelimits.remaining == 0:
|
||||
return
|
||||
await self.common_update()
|
||||
await self.common_update(ignore_issues)
|
||||
|
||||
# Get appdaemon objects.
|
||||
if self.repository_manifest:
|
||||
|
Reference in New Issue
Block a user