Lines 64-94 of sensor.py in core/homeassistant/components/ecowitt set state_class: total_increasing for all the rain accumulation entities (correctly) except for the hourly rain (& last 24 hours - I don’t use this entity).
This seems to be deliberate as each each hourly_rain state_class is explicitly none. Could someone explain the reason for this?
A while ago, I customised all the accumulation entities to set state_class: total_increasing - all good. I'd noticed that a fix was implemented so I removed all the customisations. This generated a state_class error for hourly_rain - the other entities remain total_increasing.
Seems odd that the state_class for event, daily, weekly, monthly, yearly are total_increasing and hourly is none
_RAIN_COUNT_SENSORS_STATE_CLASS_MAPPING: Final = {
"eventrainin": SensorStateClass.TOTAL_INCREASING,
"hourlyrainin": None,
"totalrainin": SensorStateClass.TOTAL_INCREASING,
"dailyrainin": SensorStateClass.TOTAL_INCREASING,
etc