updating to latest
This commit is contained in:
11
custom_components/hacs/helpers/classes/validate.py
Normal file
11
custom_components/hacs/helpers/classes/validate.py
Normal file
@@ -0,0 +1,11 @@
|
||||
class Validate:
|
||||
"""Validate."""
|
||||
|
||||
errors = []
|
||||
|
||||
@property
|
||||
def success(self):
|
||||
"""Return bool if the validation was a success."""
|
||||
if self.errors:
|
||||
return False
|
||||
return True
|
||||
Reference in New Issue
Block a user