Fix water comparison in EnergyDashboard (#14460)

fixes undefined
This commit is contained in:
RoboMagus 2022-11-28 12:46:42 +01:00 committed by GitHub
parent 7a87dc4d8a
commit f969299567
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -450,7 +450,7 @@ const getEnergyData = async (
)),
...(await fetchStatistics(
hass!,
startMinHour,
compareStartMinHour,
end,
waterStatIds,
period,

View File

@ -980,7 +980,7 @@ export class HuiEnergySourcesTableCard
class="mdc-data-table__cell mdc-data-table__cell--numeric"
>
${formatNumber(totalWaterCompare, this.hass.locale)}
${gasUnit}
${waterUnit}
</td>
${showCosts
? html`<td