hacs-govee icon indicating copy to clipboard operation
hacs-govee copied to clipboard

Fix/govee setup error

Open mweber89 opened this issue 6 months ago โ€ข 10 comments

๐Ÿ”ง Fix: Replace deprecated async_forward_entry_setup with async_forward_entry_setups ๐Ÿ› Problem Home Assistant Core (from version 2024.x) removed the method async_forward_entry_setup. This caused the following error when setting up the Govee integration:

AttributeError: 'ConfigEntries' object has no attribute 'async_forward_entry_setup'. Did you mean: 'async_forward_entry_setups'? โœ… Solution In custom_components/govee/init.py, the call was updated:

await hass.config_entries.async_forward_entry_setup(entry, component) was changed to:

await hass.config_entries.async_forward_entry_setups(entry, (component,)) The method name is now correct.

component is passed as a tuple, as required by the updated API.

๐Ÿ”— References Fixes #236

Related to Home Assistant 2024.x API changes

๐Ÿงช Testing Integration loads without error

Entities are set up as expected

No more warnings or crashes in the log

mweber89 avatar Jun 16 '25 09:06 mweber89

In custom_components/govee/init.py, the call was updated:

await hass.config_entries.async_forward_entry_setup(entry, component) was changed to:

await hass.config_entries.async_forward_entry_setups(entry, (component,)) The method name is now correct.

Big thanks! Now works for me.

OlafKroll avatar Jun 16 '25 14:06 OlafKroll

This PR is working as it should, please @LaggAt review and accept it.

chomyczek avatar Jun 17 '25 13:06 chomyczek

Duplicate of #235 ?

jfberry avatar Jun 20 '25 17:06 jfberry

Duplicate of #235 ?

no

OlafKroll avatar Jun 22 '25 15:06 OlafKroll

Duplicate of #235 ?

no

actually, seems yes to me! Looks like 4 PRs all addressing the same issue

jfberry avatar Jun 23 '25 11:06 jfberry

I'm starting to think it's time to start an official fork?

ohshazbot avatar Jun 25 '25 17:06 ohshazbot

I'm starting to think it's time to start an official fork?

Yup. I think we can consider it abandoned. Any volunteer on taking the lead? or at least can someone review all the PRs and choose one so others can use as a base?

op4lat avatar Jun 26 '25 19:06 op4lat

I'm starting to think it's time to start an official fork?

Yup. I think we can consider it abandoned. Any volunteer on taking the lead? or at least can someone review all the PRs and choose one so others can use as a base?

https://github.com/TheOneOgre/govee-cloud

Mr-HaleYa avatar Jul 07 '25 08:07 Mr-HaleYa

Duplicate #235

Mr-HaleYa avatar Jul 07 '25 08:07 Mr-HaleYa

This has been resolved in the latest release. PR can be closed https://github.com/LaggAt/hacs-govee/releases/2025.7.1

Mr-HaleYa avatar Jul 28 '25 10:07 Mr-HaleYa