From 98407853639cd7ddd473c932374581a56bf821c0 Mon Sep 17 00:00:00 2001 From: Thomas Kunzfeld <27061582+tkunzfeld@users.noreply.github.com> Date: Fri, 27 Dec 2024 00:12:54 +0100 Subject: [PATCH] Add state_class to EcoWittSensorTypes.DEGREE (#134004) Add state_class to EcoWittSensorTypes.DEGREE (#129260) --- homeassistant/components/ecowitt/sensor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/ecowitt/sensor.py b/homeassistant/components/ecowitt/sensor.py index 23af2f2a3af..50989010ae5 100644 --- a/homeassistant/components/ecowitt/sensor.py +++ b/homeassistant/components/ecowitt/sensor.py @@ -65,7 +65,9 @@ ECOWITT_SENSORS_MAPPING: Final = { state_class=SensorStateClass.MEASUREMENT, ), EcoWittSensorTypes.DEGREE: SensorEntityDescription( - key="DEGREE", native_unit_of_measurement=DEGREE + key="DEGREE", + native_unit_of_measurement=DEGREE, + state_class=SensorStateClass.MEASUREMENT, ), EcoWittSensorTypes.WATT_METERS_SQUARED: SensorEntityDescription( key="WATT_METERS_SQUARED",