Add SSDP integration (#24090)

* Add SSDP integration

* Fix tests

* Sort all the things

* Add netdisco to test requirements
This commit is contained in:
Paulus Schoutsen 2019-05-26 19:48:27 -07:00 committed by GitHub
parent 97b671171b
commit 9debbfb1a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 436 additions and 28 deletions

View file

@ -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: