Add a discovery config flow to Wemo (#24208)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2019-06-03 10:06:53 -07:00
1 parent b1dcfaf6b3
commit 4c88578371
8 files changed
+74 -17

No files matched your search

+3 -1
View File
@@ -43,7 +43,9 @@ def generate_and_validate(integrations: Dict[str, Integration]):
try:
with open(str(integration.path / "config_flow.py")) as fp:
if ' async_step_ssdp(' not in fp.read():
content = fp.read()
if (' async_step_ssdp(' not in content and
'register_discovery_flow' not in content):
integration.add_error(
'ssdp', 'Config flow has no async_step_ssdp')
continue