mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
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:
parent
6e38f5accf
commit
dfea80ae96
@ -31,7 +31,10 @@ class EnergyValidationMessage extends LitElement {
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
${this.hass.localize(
|
${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"
|
issueType === "recorder_untracked"
|
||||||
|
@ -1107,15 +1107,15 @@
|
|||||||
},
|
},
|
||||||
"entity_unexpected_unit_energy": {
|
"entity_unexpected_unit_energy": {
|
||||||
"title": "Unexpected unit of measurement",
|
"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": {
|
"entity_unexpected_unit_price": {
|
||||||
"title": "Unexpected unit of measurement",
|
"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": {
|
"entity_unexpected_state_class_total_increasing": {
|
||||||
"title": "Unexpected state class",
|
"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'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user