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

Use of "async_setup_platforms" #102

Closed
M0uC0 opened this issue Feb 1, 2023 · 6 comments · Fixed by #104
Closed

Use of "async_setup_platforms" #102

M0uC0 opened this issue Feb 1, 2023 · 6 comments · Fixed by #104

Comments

@M0uC0
Copy link

M0uC0 commented Feb 1, 2023

Version of the custom_component

latest

Configuration

n/a

Describe the bug

After updating HA to version 2023.2 started to get the message:

Logger: homeassistant.helpers.frame
Source: helpers/frame.py:77
First occurred: 23:08:22 (1 occurrences)
Last logged: 23:08:22

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 midea_dehumidifier_lan using this method at custom_components/midea_dehumidifier_lan/init.py, line 68: hass.config_entries.async_setup_platforms(config_entry, PLATFORMS)

Debug log


n/a
@albertoxamin
Copy link
Collaborator

I opened a PR to fix the issue, however, the owner of the repo hasn’t done any changes to it since August.
If by the time ha 2023.3 is out the pr will not be merged you can add my fork to HACS with the fix in place.
I have it on my instance and it has been stable.
To switch first remove the files but keep the configuration and then install from the other repo.

@M0uC0
Copy link
Author

M0uC0 commented Feb 3, 2023

Thank you

@maegibbons
Copy link

Thank you!

I will switch to your fork as it appears you are on the ball!

Krs

Mark

@ianfretwell
Copy link

Hi,

Could you be a bit more specific about the steps involved here - it might be obvious to you, but it's not to me:-

To switch first remove the files but keep the configuration and then install from the other repo.

OK, so remove what files from where ?

Where is the configuration held - so that I can 'keep it' ?

Do I then need to add this github as a custom repository to HACS ?

Sorry for the all the questions....

@albertoxamin
Copy link
Collaborator

Yes, you should add the forked repo as a custom repository on hacs.
Then go in the details of the installed midea integration and press the three dots on the top right, there remove and it will ask if you want to keep the configuration. Then you can install the other version which will pick up the same configuration and after a restart you'd be fully switched

@ianfretwell
Copy link

Much appreciated - 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
4 participants