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 in HomeAssistant Log #51

Open
NicoDreamzZ opened this issue Aug 8, 2024 · 12 comments
Open

Warning in HomeAssistant Log #51

NicoDreamzZ opened this issue Aug 8, 2024 · 12 comments

Comments

@NicoDreamzZ
Copy link

Hey, i discovered the following warning in the HA Logs after restarting. Two Rademacher RolloTron devices are connected.

Detected code that calls async_forward_entry_setup for integration duofern with title: duofern and entry_id: 5ceeb6209d6d91bcffef2669250f657d, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.

@Dondo11
Copy link

Dondo11 commented Sep 29, 2024

I'm seeing this, too.

Are there any plans for fixing this? It would be a pity to not be able to upgrade HA to 2025.1 and beyond or loose the Rademacher Duofern integration 🥲

@gluap
Copy link
Owner

gluap commented Sep 29, 2024

Screenshot_20240929-231713.png

Seems we have been given yet another 6 extra months to fix it. And this isn't the first extension of the deadline.

@Dondo11
Copy link

Dondo11 commented Sep 30, 2024

Small sigh of relief 🙂

Just out of interest: How much of an effort would it be to implement the suggested remedy?

@NicoDreamzZ
Copy link
Author

In my homeassistant instance it sill says deprecated at 2025.1... Maybe this bit can help? https://developers.home-assistant.io/blog/2024/06/12/async_forward_entry_setups/

I am not very familiar with python, i think something needs to be changes here:
https://github.com/gluap/pyduofern-hacs/blob/a27915fb87080e2ed8384d78f84a36b98ba7da7f/custom_components/duofern/__init__.py#L132C1-L139C16

@gluap
Copy link
Owner

gluap commented Nov 14, 2024

@NicoDreamzZ which homeassistant version are you using? I just checked and on latest I still get 2025.6 for the deadline like in my screenshot above. Screenshot_20241114-064716.png

@Dondo11
Copy link

Dondo11 commented Nov 14, 2024 via email

@NicoDreamzZ
Copy link
Author

@NicoDreamzZ which homeassistant version are you using? I just checked and on latest I still get 2025.6 for the deadline like in my screenshot above. Screenshot_20241114-064716.png

I am using 2024.11.1

Screenshot_20241114-093431.png

Screenshot_20241114-093450.png

@gluap
Copy link
Owner

gluap commented Nov 14, 2024

If you like you could try the latest pyduofern-hacs prerelease, it should not have the warning any more. Once it's aged a bit and people have used it I'll upgrade it to a proper release.

@NicoDreamzZ
Copy link
Author

NicoDreamzZ commented Nov 14, 2024

Sure, i downloaded the latest prerelease and did a complete reboot of my instance. All devices are working fine, and the warning is gone.

@Dondo11
Copy link

Dondo11 commented Nov 19, 2024

If you like you could try the latest pyduofern-hacs prerelease …

Dumb question from an uninitiated HA user: Is there a straightforward way to install that prerelease via the HACS integration?

@NicoDreamzZ
Copy link
Author

If you like you could try the latest pyduofern-hacs prerelease …

Dumb question from an uninitiated HA user: Is there a straightforward way to install that prerelease via the HACS integration?

Yes, you can select the integration in hacs, tap the three dots in the upper right corner, select Redownload and then on the Dialoge you can select your desired version.

@Dondo11
Copy link

Dondo11 commented Nov 22, 2024

Yes, you can select the integration in hacs, tap the three dots in the upper right corner, select Redownload and then on the Dialoge you can select your desired version.

That went without a hitch so far. The warning's gone. Will see how it goes...

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