Skip to content

Commit

Permalink
Add translation to numeric condition card
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya committed Oct 23, 2023
1 parent fdddc18 commit 82a464f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 "";
}
Expand Down
4 changes: 3 additions & 1 deletion src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 82a464f

Please sign in to comment.