gluap / pyduofern-hacs

Repository managing hacs-integration for pyduofern
MIT License
27 stars 8 forks source link

Warning in HomeAssistant Log #51

Open NicoDreamzZ opened 3 months ago

NicoDreamzZ commented 3 months ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

Small sigh of relief 🙂

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

NicoDreamzZ commented 1 week ago

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 commented 1 week ago

@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 commented 1 week ago

I‘m currently on 2024.11.0, skipping every other update unless something of interest was being introduced.Am 14.11.2024 um 06:49 schrieb gluap @.***>: @NicoDreamzZ which homeassistant version are you using? I just checked and on latest I still get 2025.6 Screenshot_20241114-064716.png (view on web)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

NicoDreamzZ commented 1 week ago

@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 commented 1 week ago

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 commented 1 week ago

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 commented 1 week ago

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 commented 4 days ago

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 commented 4 days ago

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...