Skip to content

Commit

Permalink
Add state class to precipitation_intensity in Aemet (#129670)
Browse files Browse the repository at this point in the history
Update sensor.py
  • Loading branch information
luca-angemi authored and balloob committed Nov 4, 2024
1 parent 6e98343 commit bf19693
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions homeassistant/components/aemet/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ class AemetSensorEntityDescription(SensorEntityDescription):
name="Rain",
native_unit_of_measurement=UnitOfVolumetricFlux.MILLIMETERS_PER_HOUR,
device_class=SensorDeviceClass.PRECIPITATION_INTENSITY,
state_class=SensorStateClass.MEASUREMENT,
),
AemetSensorEntityDescription(
key=ATTR_API_RAIN_PROB,
Expand All @@ -263,6 +264,7 @@ class AemetSensorEntityDescription(SensorEntityDescription):
name="Snow",
native_unit_of_measurement=UnitOfVolumetricFlux.MILLIMETERS_PER_HOUR,
device_class=SensorDeviceClass.PRECIPITATION_INTENSITY,
state_class=SensorStateClass.MEASUREMENT,
),
AemetSensorEntityDescription(
key=ATTR_API_SNOW_PROB,
Expand Down

0 comments on commit bf19693

Please sign in to comment.