Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions script/hassfest/ssdp.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def generate_and_validate(integrations: Dict[str, Integration]):
content = fp.read()
if (
" async_step_ssdp" not in content
and "AbstractOAuth2FlowHandler" not in content
and "register_discovery_flow" not in content
):
integration.add_error("ssdp", "Config flow has no async_step_ssdp")
Expand Down
3 changes: 3 additions & 0 deletions script/hassfest/zeroconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ def generate_and_validate(integrations: Dict[str, Integration]):
with open(str(integration.path / "config_flow.py")) as fp:
content = fp.read()
uses_discovery_flow = "register_discovery_flow" in content
uses_oauth2_flow = "AbstractOAuth2FlowHandler" in content

if (
service_types
and not uses_discovery_flow
and not uses_oauth2_flow
and " async_step_zeroconf" not in content
):
integration.add_error(
Expand All @@ -55,6 +57,7 @@ def generate_and_validate(integrations: Dict[str, Integration]):
if (
homekit_models
and not uses_discovery_flow
and not uses_oauth2_flow
and " async_step_homekit" not in content
):
integration.add_error(
Expand Down