diff --git a/src/panels/config/energy/components/ha-energy-validation-result.ts b/src/panels/config/energy/components/ha-energy-validation-result.ts index 86ec6abcbd..88e26b42a3 100644 --- a/src/panels/config/energy/components/ha-energy-validation-result.ts +++ b/src/panels/config/energy/components/ha-energy-validation-result.ts @@ -31,7 +31,10 @@ class EnergyValidationMessage extends LitElement { } > ${this.hass.localize( - `ui.panel.config.energy.validation.issues.${issueType}.description` + `ui.panel.config.energy.validation.issues.${issueType}.description`, + issueType === "entity_unexpected_unit_price" + ? { currency: this.hass.config.currency } + : undefined )} ${ issueType === "recorder_untracked" diff --git a/src/translations/en.json b/src/translations/en.json index 2f4f2f54aa..c7848aa034 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -1107,15 +1107,15 @@ }, "entity_unexpected_unit_energy": { "title": "Unexpected unit of measurement", - "description": "The following entities do not have expected units of measurement kWh or Wh:" + "description": "The following entities do not have the expected units of measurement 'kWh' or 'Wh':" }, "entity_unexpected_unit_price": { "title": "Unexpected unit of measurement", - "description": "The following entities do not have expected units of measurement that ends with /kWh or /Wh:" + "description": "The following entities do not have the expected units of measurement ''{currency}/kWh'' or ''{currency}/Wh'':" }, "entity_unexpected_state_class_total_increasing": { "title": "Unexpected state class", - "description": "The following entities do not have expected state class \"total_increasing\"" + "description": "The following entities do not have the expected state class 'total_increasing'" } } }