kdeyev / eyeonwater

HACS repository for EyeOnWater integration
MIT License
26 stars 6 forks source link

HA 2024.10: permanent warning about state class not existing #112

Open arpitgupta opened 1 month ago

arpitgupta commented 1 month ago

Have a permanent alert which will only go away if we delete the history. Saw this after I upgraded to 2024.10

Screen Shot 2024-10-03 at 7 08 19 AM
mattmeiser commented 1 month ago

Same here.

kdeyev commented 1 month ago

Thank you for reporting this issue! It's a known issue, coming from the fact the eyeonwater releases the water usage retrospectively and the HA integration has to import meters usage in the past. This scenario is not very common and the HA Core seems to have some issues with importing the historical data. The current workaround for this problem has a side effect in the form of the warning message you see. It's described on the main page of this project. You also can see the original issue thread: https://github.com/kdeyev/eyeonwater/issues/30

ThirteenTX commented 1 month ago

I installed 2.5.12, and the error is gone. I noticed you removed your message to test and confirm. Should we go back to the other version?

ThirteenTX commented 1 month ago

I spoke too soon. The error came back.

fishcharlie commented 1 month ago

So what is the solution to this? Clicking delete? Or just ignoring it?

Is there a HA Core issue tracking this that I can upvote?

ThirteenTX commented 1 month ago

This is not part of HA Core since it is in HACS. I think if you want it to work right, you can't delete it; you just have to ignore it. It drives me crazy to see it all the time, but I am getting used to an error about nothing.

kdeyev commented 1 month ago

Hi All, I apologize I'm super busy with my main job right now. TLDR: This error/warning message is absolutely harmless, and can be safely ignored. Will try to find a solution later, it may require some patching on the HA Core side, so don't expect it to be fixed soon.