Fix localization Solar total in Enery dashboard (#14841)

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
fixes undefined
This commit is contained in:
Jan Bouwhuis 2022-12-22 12:47:33 +01:00 committed by GitHub
parent 36e99c3c0f
commit 4919341871
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -279,7 +279,9 @@ export class HuiEnergySourcesTableCard
? html`<tr class="mdc-data-table__row total">
<td class="mdc-data-table__cell"></td>
<th class="mdc-data-table__cell" scope="row">
Solar total
${this.hass.localize(
"ui.panel.lovelace.cards.energy.energy_sources_table.solar_total"
)}
</th>
${compare
? html`<td

View File

@ -3808,6 +3808,7 @@
"energy_sources_table": {
"grid_total": "Grid total",
"gas_total": "Gas total",
"solar_total": "Solar total",
"water_total": "Water total",
"source": "Source",
"energy": "Energy",