Improve helper integration scaffold (#88713)

This commit is contained in:
avee87 2023-02-27 15:25:27 +00:00 committed by GitHub
parent 7419a92a1b
commit ac70612ec5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -151,13 +151,13 @@ def _custom_tasks(template, info: Info) -> None:
)
elif template == "config_flow_helper":
info.update_manifest(config_flow=True)
info.update_manifest(config_flow=True, integration_type="helper")
info.update_strings(
config={
"step": {
"user": {
"description": "New NEW_NAME Sensor",
"data": {"entity": "Input sensor", "name": "Name"},
"data": {"entity_id": "Input sensor", "name": "Name"},
},
},
},
@ -165,7 +165,7 @@ def _custom_tasks(template, info: Info) -> None:
"step": {
"init": {
"data": {
"entity": "[%key:component::NEW_DOMAIN::config::step::user::description%]"
"entity_id": "[%key:component::NEW_DOMAIN::config::step::user::description%]"
},
},
},