From f85c3565227215f0e11f1aedd103eb4cbec86688 Mon Sep 17 00:00:00 2001 From: Christoph Date: Wed, 3 Jul 2024 22:19:59 +0200 Subject: [PATCH] Fix HmIP-ESI GAS sensor DeviceClass (#121106) should be SensorDeviceClass:GAS instead of SensorDeviceClass:VOLUME to be supported in the Energy Dashboard --- homeassistant/components/homematicip_cloud/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/homematicip_cloud/sensor.py b/homeassistant/components/homematicip_cloud/sensor.py index 6cdff6caef3..6bf128a1663 100644 --- a/homeassistant/components/homematicip_cloud/sensor.py +++ b/homeassistant/components/homematicip_cloud/sensor.py @@ -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,