Correct filtering of statistics when adding gas energy source (#13968)

This commit is contained in:
Erik Montnemery 2022-10-03 13:38:22 +02:00 committed by GitHub
parent 8c7974e466
commit aa673774a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,10 @@ export class DialogEnergyGasSettings
<ha-statistic-picker
.hass=${this.hass}
.includeUnitClass=${this._params.allowedGasUnitClass}
.includeUnitClass=${this._params.allowedGasUnitClass || [
"volume",
"energy",
]}
.value=${this._source.stat_energy_from}
.label=${`${this.hass.localize(
"ui.panel.config.energy.gas.dialog.gas_usage"