diff --git a/custom_components/wiser/sensor.py b/custom_components/wiser/sensor.py index 996336f..e01d522 100755 --- a/custom_components/wiser/sensor.py +++ b/custom_components/wiser/sensor.py @@ -286,6 +286,10 @@ def device_class(self): """Return the class of the sensor.""" return SensorDeviceClass.BATTERY + @property + def state_class(self): + return SensorStateClass.MEASUREMENT + @property def native_unit_of_measurement(self): """Return the unit of measurement of this entity."""