home-assistant/custom_components/hacs/helpers/classes/validate.py

12 lines
219 B
Python
Raw Normal View History

2021-02-02 04:58:39 +00:00
class Validate:
"""Validate."""
errors = []
@property
def success(self):
"""Return bool if the validation was a success."""
if self.errors:
return False
return True