Fix missing autocomplete in energy settings (#17218)

This commit is contained in:
Till 2023-07-10 13:12:15 +02:00 committed by GitHub
parent 456eba1d88
commit 3bf8739a7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,7 +263,9 @@ export class HaStatisticPicker extends LitElement {
.renderer=${this._rowRenderer}
.disabled=${this.disabled}
.allowCustomValue=${this.allowCustomEntity}
.filteredItems=${this._statistics}
.filteredItems=${this.value && this._statistics.length === 0
? undefined
: this._statistics}
item-value-path="id"
item-id-path="id"
item-label-path="name"