Change help link in statistics pickers in energy dashboard (#18138)

This commit is contained in:
karwosts
2023-10-09 04:47:46 -07:00
committed by GitHub
parent 7861d813b1
commit db9b16e9f5
8 changed files with 22 additions and 2 deletions

View File

@@ -87,6 +87,8 @@ export class HaStatisticPicker extends LitElement {
@property({ type: Array, attribute: "exclude-statistics" })
public excludeStatistics?: string[];
@property() public helpMissingEntityUrl = "/more-info/statistics/";
@state() private _opened?: boolean;
@query("ha-combo-box", true) public comboBox!: HaComboBox;
@@ -111,7 +113,7 @@ export class HaStatisticPicker extends LitElement {
? html`<a
target="_blank"
rel="noopener noreferrer"
href=${documentationUrl(this.hass, "/more-info/statistics/")}
href=${documentationUrl(this.hass, this.helpMissingEntityUrl)}
>${this.hass.localize(
"ui.components.statistic-picker.learn_more"
)}</a