Skip to content

Commit

Permalink
Changed rain sensor state class to TOTAL_INCREASING
Browse files Browse the repository at this point in the history
  • Loading branch information
briis committed Apr 8, 2024
1 parent 7dad693 commit 89c95de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/weatherflow_forecast/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,15 +219,15 @@ 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(
key="precip_accum_local_day",
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(
Expand Down

0 comments on commit 89c95de

Please sign in to comment.