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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 316 additions and 0 deletions

View file

@ -150,6 +150,19 @@ def _custom_tasks(template, info: Info) -> None:
},
)
elif template == "config_flow_helper":
info.update_manifest(config_flow=True)
info.update_strings(
config={
"step": {
"init": {
"description": "Select the sensor for the NEW_NAME.",
"data": {"entity_id": "Sensor entity"},
},
},
},
)
elif template == "config_flow_oauth2":
info.update_manifest(config_flow=True, dependencies=["http"])
info.update_strings(