Add SSDP integration (#24090)
* Add SSDP integration * Fix tests * Sort all the things * Add netdisco to test requirements
This commit is contained in:
parent
97b671171b
commit
9debbfb1a8
22 changed files with 436 additions and 28 deletions
|
@ -31,6 +31,19 @@ def generate_and_validate(integrations: Dict[str, Integration]):
|
|||
if not service_types:
|
||||
continue
|
||||
|
||||
try:
|
||||
with open(str(integration.path / "config_flow.py")) as fp:
|
||||
if ' async_step_zeroconf(' not in fp.read():
|
||||
integration.add_error(
|
||||
'zeroconf', 'Config flow has no async_step_zeroconf')
|
||||
continue
|
||||
except FileNotFoundError:
|
||||
integration.add_error(
|
||||
'zeroconf',
|
||||
'Zeroconf info in a manifest requires a config flow to exist'
|
||||
)
|
||||
continue
|
||||
|
||||
for service_type in service_types:
|
||||
|
||||
if service_type not in service_type_dict:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue