Update HACS
This commit is contained in:
@@ -11,9 +11,12 @@ async def async_setup_validator(repository: HacsRepository) -> Validator:
|
||||
|
||||
|
||||
class Validator(ActionValidationBase):
|
||||
"""Validate the repository."""
|
||||
|
||||
category = "integration"
|
||||
|
||||
def validate(self):
|
||||
async def async_validate(self):
|
||||
"""Validate the repository."""
|
||||
if RepositoryFile.MAINIFEST_JSON not in [x.filename for x in self.repository.tree]:
|
||||
raise ValidationException(
|
||||
f"The repository has no '{RepositoryFile.MAINIFEST_JSON}' file"
|
||||
|
||||
Reference in New Issue
Block a user