1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00

Add scaffold for helper integration config flow (#67803)

This commit is contained in:
Erik Montnemery
2022-03-16 12:57:56 +01:00
committed by GitHub
parent aa82f96c16
commit f0dba8ec70
10 changed files with 316 additions and 0 deletions

View File

@@ -59,6 +59,8 @@ def main():
# If it's a new integration and it's not a config flow,
# create a config flow too.
if not args.template.startswith("config_flow"):
if info.helper:
template = "config_flow_helper"
if info.oauth2:
template = "config_flow_oauth2"
elif info.authentication or not info.discoverable: