11 lines
302 B
Python
11 lines
302 B
Python
|
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")
|