Add translation to numeric condition card

This commit is contained in:
Paul Bottein 2023-10-23 16:37:27 +02:00
parent fdddc18291
commit 82a464f50f
No known key found for this signature in database
2 changed files with 6 additions and 3 deletions

View File

@ -97,9 +97,10 @@ export class HaCardConditionNumericState extends LitElement {
case "entity":
return this.hass.localize("ui.components.entity.entity-picker.entity");
case "below":
return "Below";
case "above":
return "Above";
return this.hass.localize(
`ui.panel.lovelace.editor.condition-editor.condition.numeric_state.${schema.name}`
);
default:
return "";
}

View File

@ -4759,7 +4759,9 @@
"add": "Add condition",
"condition": {
"numeric_state": {
"label": "Entity numeric state"
"label": "Entity numeric state",
"above": "Above",
"below": "Below"
},
"screen": {
"label": "Screen",