mirror of
https://github.com/home-assistant/core.git
synced 2025-04-27 10:47:51 +00:00
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:
parent
8017bc6776
commit
f85c356522
@ -516,7 +516,7 @@ SENSORS_ESI = {
|
|||||||
HmipEsiSensorEntityDescription(
|
HmipEsiSensorEntityDescription(
|
||||||
key=ESI_TYPE_CURRENT_GAS_VOLUME,
|
key=ESI_TYPE_CURRENT_GAS_VOLUME,
|
||||||
native_unit_of_measurement=UnitOfVolume.CUBIC_METERS,
|
native_unit_of_measurement=UnitOfVolume.CUBIC_METERS,
|
||||||
device_class=SensorDeviceClass.VOLUME,
|
device_class=SensorDeviceClass.GAS,
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
value_fn=lambda device: device.functional_channel.gasVolume,
|
value_fn=lambda device: device.functional_channel.gasVolume,
|
||||||
exists_fn=lambda channel: channel.gasVolume is not None,
|
exists_fn=lambda channel: channel.gasVolume is not None,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user