Allow hassfest to validate specific integrations (#34277)
This commit is contained in:
1 parent
94a3cec4bf
commit
371bea03d6
9 files changed
+88
-22
No files matched your search
@@ -2,7 +2,7 @@
|
||||
import importlib
|
||||
import json
|
||||
import pathlib
|
||||
from typing import Any, Dict, List
|
||||
from typing import Any, Dict, List, Optional
|
||||
|
||||
import attr
|
||||
|
||||
@@ -24,10 +24,11 @@ class Error:
|
||||
class Config:
|
||||
"""Config for the run."""
|
||||
|
||||
root = attr.ib(type=pathlib.Path)
|
||||
action = attr.ib(type=str)
|
||||
errors = attr.ib(type=List[Error], factory=list)
|
||||
cache = attr.ib(type=Dict[str, Any], factory=dict)
|
||||
specific_integrations: Optional[pathlib.Path] = attr.ib()
|
||||
root: pathlib.Path = attr.ib()
|
||||
action: str = attr.ib()
|
||||
errors: List[Error] = attr.ib(factory=list)
|
||||
cache: Dict[str, Any] = attr.ib(factory=dict)
|
||||
|
||||
def add_error(self, *args, **kwargs):
|
||||
"""Add an error."""
|
||||
|
||||
Reference in new issue
Block a user