homeassistant/custom_components/hacs/helpers/classes/validate.py

12 lines
219 B
Python
Raw Normal View History

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