Alexa Media Player ADDED - #421 - Added some test Notifications. (HA restart targetted notification)

This commit is contained in:
ccostan
2020-05-03 16:23:17 -04:00
parent 0c8345389b
commit 457bc114e8
41 changed files with 315 additions and 126 deletions

View File

@@ -39,7 +39,7 @@ class HacsPythonScript(HacsRepository):
break
if not compliant:
raise HacsException(
f"Repostitory structure for {self.ref.replace('tags/','')} is not compliant"
f"Repository structure for {self.ref.replace('tags/','')} is not compliant"
)
# Handle potential errors
@@ -49,8 +49,11 @@ class HacsPythonScript(HacsRepository):
self.logger.error(error)
return self.validate.success
async def registration(self):
async def registration(self, ref=None):
"""Registration."""
if ref is not None:
self.ref = ref
self.force_branch = True
if not await self.validate_repository():
return False
@@ -80,7 +83,7 @@ class HacsPythonScript(HacsRepository):
break
if not compliant:
raise HacsException(
f"Repostitory structure for {self.ref.replace('tags/','')} is not compliant"
f"Repository structure for {self.ref.replace('tags/','')} is not compliant"
)
# Update name