Fix HmIP-ESI GAS sensor DeviceClass (#121106)

should be SensorDeviceClass:GAS instead of SensorDeviceClass:VOLUME to be supported in the Energy Dashboard
This commit is contained in:
Christoph 2024-07-03 22:19:59 +02:00 committed by GitHub
parent 8017bc6776
commit f85c356522
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -516,7 +516,7 @@ SENSORS_ESI = {
HmipEsiSensorEntityDescription(
key=ESI_TYPE_CURRENT_GAS_VOLUME,
native_unit_of_measurement=UnitOfVolume.CUBIC_METERS,
device_class=SensorDeviceClass.VOLUME,
device_class=SensorDeviceClass.GAS,
state_class=SensorStateClass.TOTAL_INCREASING,
value_fn=lambda device: device.functional_channel.gasVolume,
exists_fn=lambda channel: channel.gasVolume is not None,