Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning with 2021.9.2 : Setting last_reset is deprecated and will be unsupported from 2021.11 #50

Closed
joostvkempen opened this issue Sep 3, 2021 · 3 comments

Comments

@joostvkempen
Copy link

I've got a warning in the logging when starting Home Assistant 2021.9.2:

Entity sensor.inverter_goodwe3000_energy (<class 'custom_components.sems.sensor.SemsStatisticsSensor'>) with state_class measurement has set last_reset. Setting last_reset is deprecated and will be unsupported from Home Assistant Core 2021.11.

I think this is the change needed: https://developers.home-assistant.io/blog/2021/08/16/state_class_total/

related to #49

@TimSoethout
Copy link
Owner

Thanks.

Feel free to try the master branch. I will promote it to a release if it works.

I don't see any warnings or errors anymore and Energy seems to work.

@TheGabeMan
Copy link

Had the same issue, after applying your proposed change to my configuration, it worked.
That is change: 3bcef2e
While typing this is see you applied another change, "remove last reset", which I haven't applied yet.

@TimSoethout
Copy link
Owner

Released in 3.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants