mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-19 11:38:30 +00:00
Alexa Media Player ADDED - #421 - Added some test Notifications. (HA restart targetted notification)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user