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

New async_forward_entry_setups needed and New state class #45

Closed
Casadomoticap opened this issue Feb 3, 2023 · 0 comments · Fixed by #50
Closed

New async_forward_entry_setups needed and New state class #45

Casadomoticap opened this issue Feb 3, 2023 · 0 comments · Fixed by #50
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Casadomoticap
Copy link

Casadomoticap commented Feb 3, 2023

Hi, I have these errors with the new version for HA 2023.01:

1- New integration

Logger: homeassistant.helpers.frame
Source: helpers/frame.py:77
First occurred: 10:33:20 (1 occurrences)
Last logged: 10:33:20

Detected integration that called async_setup_platforms instead of awaiting async_forward_entry_setups; this will fail in version 2023.3. Please report issue to the custom integration author for enphase_envoy using this method at custom_components/enphase_envoy/init.py, line 131: hass.config_entries.async_setup_platforms(entry, PLATFORMS)

2- New state class

Logger: homeassistant.components.sensor
Source: components/sensor/init.py:503
Integration: Sensor (documentation, issues)
First occurred: 10:33:20 (3 occurrences)
Last logged: 10:33:20

Entity sensor.envoy_122238084071_last_seven_days_energy_production (<class 'custom_components.enphase_envoy.sensor.EnvoyEntity'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Entity sensor.envoy_122238084071_today_s_energy_consumption (<class 'custom_components.enphase_envoy.sensor.EnvoyEntity'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Entity sensor.envoy_122238084071_last_seven_days_energy_consumption (<class 'custom_components.enphase_envoy.sensor.EnvoyEntity'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.

@Casadomoticap Casadomoticap changed the title New async_forward_entry_setups needed New async_forward_entry_setups needed and New state class Feb 3, 2023
@briancmpbll briancmpbll added enhancement New feature or request help wanted Extra attention is needed labels Feb 6, 2023
bobvandevijver added a commit to bobvandevijver/home_assistant_custom_envoy that referenced this issue Feb 11, 2023
…y_setups

The old `async_setup_platforms` will be removed with 2023.3, and according to https://developers.home-assistant.io/blog/2022/07/08/config_entry_forwards/ just replacing it with an awaited `async_forward_entry_setups` should be enough.
briancmpbll added a commit that referenced this issue Feb 13, 2023
#45: Replace async_setup_platforms with async_forward_entry_setups
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
2 participants