Improve error message when people have not moved config flow title yet (#34321)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2020-04-16 18:00:30 -07:00
1 parent b9e882fd5e
commit 2326a2941e
3 files changed
+114 -43

No files matched your search

+5
View File
@@ -66,6 +66,7 @@ class Integration:
path = attr.ib(type=pathlib.Path)
manifest = attr.ib(type=dict, default=None)
errors = attr.ib(type=List[Error], factory=list)
warnings = attr.ib(type=List[Error], factory=list)
@property
def domain(self) -> str:
@@ -86,6 +87,10 @@ class Integration:
"""Add an error."""
self.errors.append(Error(*args, **kwargs))
def add_warning(self, *args, **kwargs):
"""Add an warning."""
self.warnings.append(Error(*args, **kwargs))
def load_manifest(self) -> None:
"""Load manifest."""
manifest_path = self.path / "manifest.json"