homeassistant/custom_components/hacs/validate/integration/integration_manifest.py

11 lines
358 B
Python

from custom_components.hacs.validate.base import (
ActionValidationBase,
ValidationException,
)
class IntegrationManifest(ActionValidationBase, category="integration"):
def check(self):
if "manifest.json" not in [x.filename for x in self.repository.tree]:
raise ValidationException("The repository has no 'hacs.json' file")