mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 08:16:36 +00:00
Improve template trigger/condition descriptions (#18504)
This commit is contained in:
parent
e09a6a23fc
commit
3d03f74d66
@ -1090,6 +1090,12 @@ const tryDescribeCondition = (
|
|||||||
}`;
|
}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (condition.condition === "template") {
|
||||||
|
return hass.localize(
|
||||||
|
`${conditionsTranslationBaseKey}.template.description.full`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (condition.condition === "trigger" && condition.id != null) {
|
if (condition.condition === "trigger" && condition.id != null) {
|
||||||
return hass.localize(
|
return hass.localize(
|
||||||
`${conditionsTranslationBaseKey}.trigger.description.full`,
|
`${conditionsTranslationBaseKey}.trigger.description.full`,
|
||||||
|
@ -2532,7 +2532,7 @@
|
|||||||
"value_template": "Value template",
|
"value_template": "Value template",
|
||||||
"for": "For",
|
"for": "For",
|
||||||
"description": {
|
"description": {
|
||||||
"full": "When a template triggers{hasDuration, select, \n true { for {duration}} \n other {}\n }"
|
"full": "When a template changes from false to true{hasDuration, select, \n true { for {duration}} \n other {}\n }"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"time": {
|
"time": {
|
||||||
@ -2662,7 +2662,10 @@
|
|||||||
},
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"label": "[%key:ui::panel::config::automation::editor::triggers::type::template::label%]",
|
"label": "[%key:ui::panel::config::automation::editor::triggers::type::template::label%]",
|
||||||
"value_template": "[%key:ui::panel::config::automation::editor::triggers::type::template::value_template%]"
|
"value_template": "[%key:ui::panel::config::automation::editor::triggers::type::template::value_template%]",
|
||||||
|
"description": {
|
||||||
|
"full": "Test if template renders a value equal to true"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"time": {
|
"time": {
|
||||||
"type_value": "[%key:ui::panel::config::automation::editor::triggers::type::time::type_value%]",
|
"type_value": "[%key:ui::panel::config::automation::editor::triggers::type::time::type_value%]",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user