Add a discovery config flow to Wemo (#24208)
This commit is contained in:
1 parent
b1dcfaf6b3
commit
4c88578371
8 files changed
+74
-17
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user