diff --git a/homeassistant/components/miflora/sensor.py b/homeassistant/components/miflora/sensor.py index 0c22a943bb3..a7aab41bea9 100644 --- a/homeassistant/components/miflora/sensor.py +++ b/homeassistant/components/miflora/sensor.py @@ -8,7 +8,11 @@ from btlewrap import BluetoothBackendException from miflora import miflora_poller import voluptuous as vol -from homeassistant.components.sensor import PLATFORM_SCHEMA, SensorEntity +from homeassistant.components.sensor import ( + PLATFORM_SCHEMA, + STATE_CLASS_MEASUREMENT, + SensorEntity, +) from homeassistant.const import ( CONDUCTIVITY, CONF_FORCE_UPDATE, @@ -197,6 +201,11 @@ class MiFloraSensor(SensorEntity): """Return the device class.""" return self._device_class + @property + def state_class(self): + """Return the state class of this entity.""" + return STATE_CLASS_MEASUREMENT + @property def unit_of_measurement(self): """Return the units of measurement."""