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-05 11:20:07 +02:00
committed by Franck Nijhof
parent ba1cf84ea5
commit fc4af48179
@@ -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,