homeassistant/custom_components/hacs/validate/common/repository_description.py

11 lines
302 B
Python
Raw Permalink Normal View History

from custom_components.hacs.validate.base import (
ActionValidationBase,
ValidationException,
)
class RepositoryDescription(ActionValidationBase):
def check(self):
if not self.repository.data.description:
raise ValidationException("The repository has no description")