Add a discovery config flow to Wemo (#24208)

This commit is contained in:
Paulus Schoutsen committed 2019-06-07 23:13:41 -07:00
1 parent 8d3c9bc2d0
commit 798b72e164
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