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

Setting last_reset is deprecated and will be unsupported from Home Assistant Core 2021.11 #21

Closed
thunder2k opened this issue Sep 10, 2021 · 1 comment

Comments

@thunder2k
Copy link

thunder2k commented Sep 10, 2021

Hi,
I found the following in the logs and want to bring it to your attention :)

Version of the custom_component

0.0.11

Configuration

Installed from HACS

Describe the bug

I saw the following coming in my logs and want to give you a heads up so you can give it a look before November otherwise it ill break the integration.

Debug log


Entity sensor.myenergi_home_grid_import_today_cost (<class 'homeassistant.components.energy.sensor.EnergyCostSensor'>) with state_class measurement has set last_reset. Setting last_reset is deprecated and will be unsupported from Home Assistant Core 2021.11. Please update your configuration if state_class is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+energy%22

@CJNE
Copy link
Owner

CJNE commented Sep 13, 2021

Thanks @thunder2k, that warning actually comes from the built in Home Assistant energy component, they will probably fix that in the next release.

@CJNE CJNE closed this as completed Sep 13, 2021
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