#743 - Trying to fix this.

This commit is contained in:
ccostan
2020-05-21 18:48:00 -04:00
parent cf3764e3e4
commit 5c7334bc05
42 changed files with 863 additions and 513 deletions

View File

@@ -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: