mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-27 06:47:20 +00:00
Fix for Statistics Editor (#11942)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
parent
8258641443
commit
9d28df31bd
@ -153,7 +153,7 @@ export class HuiStatisticsGraphCardEditor
|
||||
.pickedStatisticLabel=${`Statistic`}
|
||||
.value=${this._configEntities}
|
||||
.configValue=${"entities"}
|
||||
@value-changed=${this._valueChanged}
|
||||
@value-changed=${this._entitiesChanged}
|
||||
></ha-statistics-picker>
|
||||
</div>
|
||||
`;
|
||||
@ -163,6 +163,12 @@ export class HuiStatisticsGraphCardEditor
|
||||
fireEvent(this, "config-changed", { config: ev.detail.value });
|
||||
}
|
||||
|
||||
private _entitiesChanged(ev: CustomEvent): void {
|
||||
fireEvent(this, "config-changed", {
|
||||
config: { ...this._config!, entities: ev.detail.value },
|
||||
});
|
||||
}
|
||||
|
||||
private _computeLabelCallback = (schema: HaFormSchema) =>
|
||||
this.hass!.localize(
|
||||
`ui.panel.lovelace.editor.card.generic.${schema.name}`
|
||||
|
Loading…
x
Reference in New Issue
Block a user