diff --git a/custom_components/weatherflow_forecast/sensor.py b/custom_components/weatherflow_forecast/sensor.py index a153971..ab39b8e 100644 --- a/custom_components/weatherflow_forecast/sensor.py +++ b/custom_components/weatherflow_forecast/sensor.py @@ -219,7 +219,7 @@ class WeatherFlowSensorEntityDescription(SensorEntityDescription): name="Precipitation last hour", native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS, device_class=SensorDeviceClass.PRECIPITATION, - state_class=SensorStateClass.MEASUREMENT, + state_class=SensorStateClass.TOTAL_INCREASING, suggested_display_precision=1, ), WeatherFlowSensorEntityDescription( @@ -227,7 +227,7 @@ class WeatherFlowSensorEntityDescription(SensorEntityDescription): name="Precipitation today", native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS, device_class=SensorDeviceClass.PRECIPITATION, - state_class=SensorStateClass.MEASUREMENT, + state_class=SensorStateClass.TOTAL_INCREASING, suggested_display_precision=1, ), WeatherFlowSensorEntityDescription(