Skip to content

Commit d32f84f

Browse files
authored
Add missing labels in energy dashboard settings (#12722)
Signed-off-by: Patrick ZAJDA <[email protected]>
1 parent 5fb1504 commit d32f84f

File tree

5 files changed

+44
-0
lines changed

5 files changed

+44
-0
lines changed

src/panels/config/energy/components/ha-energy-battery-settings.ts

+6
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,16 @@ export class EnergyBatterySettings extends LitElement {
107107
>
108108
</div>
109109
<ha-icon-button
110+
.label=${this.hass.localize(
111+
"ui.panel.config.energy.battery.edit_battery_system"
112+
)}
110113
@click=${this._editSource}
111114
.path=${mdiPencil}
112115
></ha-icon-button>
113116
<ha-icon-button
117+
.label=${this.hass.localize(
118+
"ui.panel.config.energy.battery.delete_battery_system"
119+
)}
114120
@click=${this._deleteSource}
115121
.path=${mdiDelete}
116122
></ha-icon-button>

src/panels/config/energy/components/ha-energy-gas-settings.ts

+6
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,16 @@ export class EnergyGasSettings extends LitElement {
9494
: source.stat_energy_from}</span
9595
>
9696
<ha-icon-button
97+
.label=${this.hass.localize(
98+
"ui.panel.config.energy.gas.edit_gas_source"
99+
)}
97100
@click=${this._editSource}
98101
.path=${mdiPencil}
99102
></ha-icon-button>
100103
<ha-icon-button
104+
.label=${this.hass.localize(
105+
"ui.panel.config.energy.gas.delete_gas_source"
106+
)}
101107
@click=${this._deleteSource}
102108
.path=${mdiDelete}
103109
></ha-icon-button>

src/panels/config/energy/components/ha-energy-grid-settings.ts

+15
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,16 @@ export class EnergyGridSettings extends LitElement {
132132
: flow.stat_energy_from}</span
133133
>
134134
<ha-icon-button
135+
.label=${this.hass.localize(
136+
"ui.panel.config.energy.grid.edit_consumption"
137+
)}
135138
@click=${this._editFromSource}
136139
.path=${mdiPencil}
137140
></ha-icon-button>
138141
<ha-icon-button
142+
.label=${this.hass.localize(
143+
"ui.panel.config.energy.grid.delete_consumption"
144+
)}
139145
@click=${this._deleteFromSource}
140146
.path=${mdiDelete}
141147
></ha-icon-button>
@@ -171,10 +177,16 @@ export class EnergyGridSettings extends LitElement {
171177
: flow.stat_energy_to}</span
172178
>
173179
<ha-icon-button
180+
.label=${this.hass.localize(
181+
"ui.panel.config.energy.grid.edit_return"
182+
)}
174183
@click=${this._editToSource}
175184
.path=${mdiPencil}
176185
></ha-icon-button>
177186
<ha-icon-button
187+
.label=${this.hass.localize(
188+
"ui.panel.config.energy.grid.delete_return"
189+
)}
178190
@click=${this._deleteToSource}
179191
.path=${mdiDelete}
180192
></ha-icon-button>
@@ -212,6 +224,9 @@ export class EnergyGridSettings extends LitElement {
212224
<ha-icon-button .path=${mdiPencil}></ha-icon-button>
213225
</a>
214226
<ha-icon-button
227+
.label=${this.hass.localize(
228+
"ui.panel.config.energy.grid.remove_co2_signal"
229+
)}
215230
@click=${this._removeCO2Sensor}
216231
.path=${mdiDelete}
217232
></ha-icon-button>

src/panels/config/energy/components/ha-energy-solar-settings.ts

+6
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,18 @@ export class EnergySolarSettings extends LitElement {
104104
${this.info
105105
? html`
106106
<ha-icon-button
107+
.label=${this.hass.localize(
108+
"ui.panel.config.energy.solar.edit_solar_production"
109+
)}
107110
@click=${this._editSource}
108111
.path=${mdiPencil}
109112
></ha-icon-button>
110113
`
111114
: ""}
112115
<ha-icon-button
116+
.label=${this.hass.localize(
117+
"ui.panel.config.energy.solar.delete_solar_production"
118+
)}
113119
@click=${this._deleteSource}
114120
.path=${mdiDelete}
115121
></ha-icon-button>

src/translations/en.json

+11
Original file line numberDiff line numberDiff line change
@@ -1308,10 +1308,15 @@
13081308
"sub": "Configure the amount of energy that you consume from the grid and, if you produce energy, give back to the grid. This allows Home Assistant to track your whole home energy usage.",
13091309
"learn_more": "More information on how to get started.",
13101310
"grid_consumption": "Grid consumption",
1311+
"edit_consumption": "Edit consumption",
1312+
"delete_consumption": "Delete consumption",
13111313
"add_consumption": "Add consumption",
13121314
"return_to_grid": "Return to grid",
1315+
"edit_return": "Edit return",
1316+
"delete_return": "Delete return",
13131317
"add_return": "Add return",
13141318
"grid_carbon_footprint": "Grid carbon footprint",
1319+
"remove_co2_signal": "Remove CO2 signal integration",
13151320
"add_co2_signal": "Add CO2 signal integration",
13161321
"flow_dialog": {
13171322
"from": {
@@ -1349,6 +1354,8 @@
13491354
"sub": "Let Home Assistant monitor your solar panels and give you insight on their performance.",
13501355
"learn_more": "More information on how to get started.",
13511356
"solar_production": "Solar production",
1357+
"edit_solar_production": "Edit solar production",
1358+
"delete_solar_production": "Delete solar production",
13521359
"add_solar_production": "Add solar production",
13531360
"stat_production": "Your solar energy production",
13541361
"stat_return_to_grid": "Solar energy returned to the grid",
@@ -1368,6 +1375,8 @@
13681375
"sub": "If you have a battery system, you can configure it to monitor how much energy was stored and used from your battery.",
13691376
"learn_more": "More information on how to get started.",
13701377
"battery_systems": "Battery systems",
1378+
"edit_battery_system": "Edit battery system",
1379+
"delete_battery_system": "Delete battery system",
13711380
"add_battery_system": "Add battery system",
13721381
"dialog": {
13731382
"header": "Configure battery system",
@@ -1380,6 +1389,8 @@
13801389
"sub": "Let Home Assistant monitor your gas usage.",
13811390
"learn_more": "More information on how to get started.",
13821391
"gas_consumption": "Gas consumption",
1392+
"edit_gas_source": "Edit gas source",
1393+
"delete_gas_source": "Delete gas source",
13831394
"add_gas_source": "Add gas source",
13841395
"dialog": {
13851396
"header": "Configure gas consumption",

0 commit comments

Comments
 (0)