diff --git a/src/panels/developer-tools/statistics/dialog-statistics-fix-unsupported-unit-meta.ts b/src/panels/developer-tools/statistics/dialog-statistics-fix-unsupported-unit-meta.ts index fd7e7ae61f..c9f277f114 100644 --- a/src/panels/developer-tools/statistics/dialog-statistics-fix-unsupported-unit-meta.ts +++ b/src/panels/developer-tools/statistics/dialog-statistics-fix-unsupported-unit-meta.ts @@ -37,10 +37,10 @@ export class DialogStatisticsFixUnsupportedUnitMetadata extends LitElement { heading="Unsupported unit in recorded statistics" >

- The unit of the statistics in your database for this entity is not a - supported unit for the device class of the entity, - ${this._params.issue.data.device_class}. It should be - ${this._params.issue.data.supported_unit}. + The unit ${this._params.issue.data.metadata_unit} of the statistics in + your database for this entity is not a supported unit for the device + class of the entity, ${this._params.issue.data.device_class}. It + should be ${this._params.issue.data.supported_unit}.

Do you want to update the unit of the history statistics to diff --git a/src/translations/en.json b/src/translations/en.json index 3fb886faf8..25c2034d3e 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -3733,7 +3733,7 @@ "issues": { "units_changed": "The unit of this entity changed from ''{metadata_unit}'' to ''{state_unit}''.", "unsupported_unit_state": "The unit (''{state_unit}'') of this entity doesn't match a unit of device class ''{device_class}''.", - "unsupported_unit_metadata": "The unit (''{state_unit}'') of the recorded statistics doesn't match a unit of device class ''{device_class}''.", + "unsupported_unit_metadata": "The unit (''{metadata_unit}'') of the recorded statistics doesn't match the supported unit ''{supported_unit}'' of device class ''{device_class}''.", "unsupported_state_class": "The state class ''{state_class}'' of this entity is not supported.", "entity_not_recorded": "This entity is excluded from being recorded." },