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

sensor.xxxx_last_restart has device class None, state class total_increasing since 2023.2.x #94

Closed
alvinchen1 opened this issue Feb 5, 2023 · 2 comments

Comments

@alvinchen1
Copy link

Hello! Looks like there are some recent changes where state class, device class and state are stricter. Since 2023.2.x getting a new
Core Log Warning:

Sensor sensor.xxxx_last_restart has device class None, state class total_increasing and unit None thus indicating it has a numeric value; however, it has the non-numeric value: 2023-01-23 19:58:26 (<class 'datetime.datetime'>); Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.

Device:

image

Looks like line 849 in https://github.com/elad-bar/ha-edgeos/blob/master/custom_components/edgeos/component/managers/home_assistant.py

state_class=SensorStateClass.TOTAL_INCREASING

Might need to be dropped?

@elad-bar
Copy link
Owner

released new version with fix for it, v2.0.25, pls check and let me know if works for you

thanks

@alvinchen1
Copy link
Author

Don't see the error anymore. Thanks!

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

2 participants