Improve threshold translation strings (#69250)

This commit is contained in:
Erik Montnemery 2022-04-04 17:45:24 +02:00 committed by GitHub
parent 88c76be5ad
commit c8d4b2ecab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 11 deletions

View File

@ -1,14 +1,14 @@
{ {
"title": "Threshold Sensor",
"config": { "config": {
"step": { "step": {
"user": { "user": {
"title": "New Threshold Sensor", "title": "Add Threshold Sensor",
"description": "Configure when the sensor should turn on and off.\n\nOnly lower limit configured - Turn on when the input sensor's value is less than the lower limit.\nOnly upper limit configured - Turn on when the input sensor's value is greater than the upper limit.\nBoth lower and upper limit configured - Turn on when the input sensor's value is in the range [lower limit .. upper limit].", "description": "Create a binary sensor that turns on and off depending on the value of a sensor\n\nOnly lower limit configured - Turn on when the input sensor's value is less than the lower limit.\nOnly upper limit configured - Turn on when the input sensor's value is greater than the upper limit.\nBoth lower and upper limit configured - Turn on when the input sensor's value is in the range [lower limit .. upper limit].",
"data": { "data": {
"entity_id": "Input sensor", "entity_id": "Input sensor",
"hysteresis": "Hysteresis", "hysteresis": "Hysteresis",
"lower": "Lower limit", "lower": "Lower limit",
"mode": "Threshold mode",
"name": "Name", "name": "Name",
"upper": "Upper limit" "upper": "Upper limit"
} }
@ -21,12 +21,11 @@
"options": { "options": {
"step": { "step": {
"init": { "init": {
"description": "[%key:component::threshold::config::step::user::description%]", "description": "Only lower limit configured - Turn on when the input sensor's value is less than the lower limit.\nOnly upper limit configured - Turn on when the input sensor's value is greater than the upper limit.\nBoth lower and upper limit configured - Turn on when the input sensor's value is in the range [lower limit .. upper limit].",
"data": { "data": {
"entity_id": "[%key:component::threshold::config::step::user::data::entity_id%]", "entity_id": "[%key:component::threshold::config::step::user::data::entity_id%]",
"hysteresis": "[%key:component::threshold::config::step::user::data::hysteresis%]", "hysteresis": "[%key:component::threshold::config::step::user::data::hysteresis%]",
"lower": "[%key:component::threshold::config::step::user::data::lower%]", "lower": "[%key:component::threshold::config::step::user::data::lower%]",
"mode": "[%key:component::threshold::config::step::user::data::mode%]",
"name": "[%key:component::threshold::config::step::user::data::name%]", "name": "[%key:component::threshold::config::step::user::data::name%]",
"upper": "[%key:component::threshold::config::step::user::data::upper%]" "upper": "[%key:component::threshold::config::step::user::data::upper%]"
} }

View File

@ -9,12 +9,11 @@
"entity_id": "Input sensor", "entity_id": "Input sensor",
"hysteresis": "Hysteresis", "hysteresis": "Hysteresis",
"lower": "Lower limit", "lower": "Lower limit",
"mode": "Threshold mode",
"name": "Name", "name": "Name",
"upper": "Upper limit" "upper": "Upper limit"
}, },
"description": "Configure when the sensor should turn on and off.\n\nOnly lower limit configured - Turn on when the input sensor's value is less than the lower limit.\nOnly upper limit configured - Turn on when the input sensor's value is greater than the upper limit.\nBoth lower and upper limit configured - Turn on when the input sensor's value is in the range [lower limit .. upper limit].", "description": "Create a binary sensor that turns on and off depending on the value of a sensor\n\nOnly lower limit configured - Turn on when the input sensor's value is less than the lower limit.\nOnly upper limit configured - Turn on when the input sensor's value is greater than the upper limit.\nBoth lower and upper limit configured - Turn on when the input sensor's value is in the range [lower limit .. upper limit].",
"title": "New Threshold Sensor" "title": "Add Threshold Sensor"
} }
} }
}, },
@ -28,12 +27,12 @@
"entity_id": "Input sensor", "entity_id": "Input sensor",
"hysteresis": "Hysteresis", "hysteresis": "Hysteresis",
"lower": "Lower limit", "lower": "Lower limit",
"mode": "Threshold mode",
"name": "Name", "name": "Name",
"upper": "Upper limit" "upper": "Upper limit"
}, },
"description": "Configure when the sensor should turn on and off.\n\nOnly lower limit configured - Turn on when the input sensor's value is less than the lower limit.\nOnly upper limit configured - Turn on when the input sensor's value is greater than the upper limit.\nBoth lower and upper limit configured - Turn on when the input sensor's value is in the range [lower limit .. upper limit]." "description": "Only lower limit configured - Turn on when the input sensor's value is less than the lower limit.\nOnly upper limit configured - Turn on when the input sensor's value is greater than the upper limit.\nBoth lower and upper limit configured - Turn on when the input sensor's value is in the range [lower limit .. upper limit]."
}
} }
} }
},
"title": "Threshold Sensor"
} }