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": case "entity":
return this.hass.localize("ui.components.entity.entity-picker.entity"); return this.hass.localize("ui.components.entity.entity-picker.entity");
case "below": case "below":
return "Below";
case "above": case "above":
return "Above"; return this.hass.localize(
`ui.panel.lovelace.editor.condition-editor.condition.numeric_state.${schema.name}`
);
default: default:
return ""; return "";
} }

View File

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