diff --git a/custom_components/meria/sensor.py b/custom_components/meria/sensor.py index 1c1a3c0..7990148 100644 --- a/custom_components/meria/sensor.py +++ b/custom_components/meria/sensor.py @@ -54,7 +54,11 @@ def unique_id(self): @property def device_class(self): - return DEVICE_CLASS_MONETARY + return SensorDeviceClass.MONETARY + + @property + def state_class(self): + return SensorStateClass.MEASUREMENT @property def unit_of_measurement(self):