Clarify unit of measurement warning for price entity (#9907)

* Clarify unit of measurement warning for price entity

* Remove unneeded escapes
This commit is contained in:
Bram Kragten 2021-08-30 15:33:23 +02:00 committed by GitHub
parent 6e38f5accf
commit dfea80ae96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View File

@ -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"

View File

@ -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'"
}
}
}