Merge pull request #9687 from home-assistant/add-description-devices-dialog

Add description to statistic picker in add device dialog
This commit is contained in:
Paulus Schoutsen 2021-08-02 10:30:24 -07:00 committed by GitHub
commit dc6ac668b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -58,6 +58,11 @@ export class DialogEnergyDeviceSettings
@closed=${this.closeDialog}
>
${this._error ? html`<p class="error">${this._error}</p>` : ""}
<div>
${this.hass.localize(
`ui.panel.config.energy.device_consumption.dialog.selected_stat_intro`
)}
</div>
<ha-statistic-picker
.hass=${this.hass}

View File

@ -1052,7 +1052,10 @@
"sub": "Tracking the energy usage of individual devices allows Home Assistant to break down your energy usage by device.",
"learn_more": "More information on how to get started.",
"add_stat": "Pick entity to track energy of",
"selected_stat": "Tracking energy for"
"selected_stat": "Tracking energy for",
"dialog": {
"selected_stat_intro": "Select the entity that represents the device energy usage."
}
}
},
"helpers": {