diff --git a/src/components/entity/ha-statistic-picker.ts b/src/components/entity/ha-statistic-picker.ts index 3ae43f8455..806322b2e2 100644 --- a/src/components/entity/ha-statistic-picker.ts +++ b/src/components/entity/ha-statistic-picker.ts @@ -156,17 +156,15 @@ export class HaStatisticPicker extends LitElement { this.value ); - private _getAdditionalItems(): StatisticComboBoxItem[] { - return [ - { - id: MISSING_ID, - primary: this.hass.localize( - "ui.components.statistic-picker.missing_entity" - ), - icon_path: mdiHelpCircleOutline, - }, - ]; - } + private _getAdditionalItems = (): StatisticComboBoxItem[] => [ + { + id: MISSING_ID, + primary: this.hass.localize( + "ui.components.statistic-picker.missing_entity" + ), + icon_path: mdiHelpCircleOutline, + }, + ]; private _getStatisticsItems = memoizeOne( (