Improve helper integration scaffold (#88713)
This commit is contained in:
parent
7419a92a1b
commit
ac70612ec5
1 changed files with 3 additions and 3 deletions
|
@ -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%]"
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue