dotKrad / hass-fpl

FPL Component for Home Assistant
MIT License
40 stars 20 forks source link

State class of this entity " is not supported #35

Open zoopster opened 2 years ago

zoopster commented 2 years ago

Updated with latest commits as of friday 26 Aug... When I look in developer tools under statistics the error shows from the "recorder" source. State class of this entity " is not supported The sensors seem to work fine, but HASS wants to delete data associated with them.

Did the state class change or is this a regression with the latest changes?

adamoutler commented 2 years ago

Yes. State classes were all commented out. Because of this, the sensors cannot be used with energy features. See here for more https://github.com/dotKrad/hass-fpl/blob/master/custom_components/fpl/sensor_DailyUsageSensor.py#L69

adamoutler commented 2 years ago

I didn't bother with a pull request because it appears a major refactoring its ongoing.