Improve strings for helper flow scaffold (#68257)

This commit is contained in:
Erik Montnemery 2022-03-17 13:14:38 +01:00 committed by GitHub
parent 81d001bcdc
commit ead5b3e2c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 2 deletions

View File

@ -154,10 +154,19 @@ def _custom_tasks(template, info: Info) -> None:
info.update_manifest(config_flow=True)
info.update_strings(
config={
"step": {
"user": {
"description": "New NEW_NAME Sensor",
"data": {"entity": "Input sensor", "name": "Name"},
},
},
},
options={
"step": {
"init": {
"description": "Select the sensor for the NEW_NAME.",
"data": {"entity_id": "Sensor entity"},
"data": {
"entity": "[%key:component::NEW_DOMAIN::config::step::user::description%]"
},
},
},
},