home-assistant/custom_components/hacs/helpers/classes/validate.py
2021-02-01 23:58:39 -05:00

11 lines
219 B
Python

class Validate:
"""Validate."""
errors = []
@property
def success(self):
"""Return bool if the validation was a success."""
if self.errors:
return False
return True