diff --git a/homeassistant/components/withings/sensor.py b/homeassistant/components/withings/sensor.py index f8753739519..fbeefb2c514 100644 --- a/homeassistant/components/withings/sensor.py +++ b/homeassistant/components/withings/sensor.py @@ -1,7 +1,11 @@ """Sensors flow for Withings.""" from __future__ import annotations -from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN, SensorEntity +from homeassistant.components.sensor import ( + DOMAIN as SENSOR_DOMAIN, + SensorEntity, + SensorStateClass, +) from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddEntitiesCallback @@ -37,3 +41,8 @@ class WithingsHealthSensor(BaseWithingsSensor, SensorEntity): def native_unit_of_measurement(self) -> str: """Return the unit of measurement of this entity, if any.""" return self._attribute.unit_of_measurement + + @property + def state_class(self) -> str: + """Return the state_class of this entity, if any.""" + return SensorStateClass.MEASUREMENT