Skip to content

Conversation

@mweber89
Copy link

@mweber89 mweber89 commented Jun 16, 2025

🔧 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 added 3 commits June 16, 2025 11:29
Replaces deprecated call with async_forward_entry_setups()
Resolves LaggAt#236
Replaces deprecated call with async_forward_entry_setups()
Resolves LaggAt#236
Replaces deprecated call with async_forward_entry_setups()
Resolves LaggAt#236
@OlafKroll
Copy link

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.

@chomyczek
Copy link

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

@jfberry
Copy link

jfberry commented Jun 20, 2025

Duplicate of #235 ?

@OlafKroll
Copy link

Duplicate of #235 ?

no

@jfberry
Copy link

jfberry commented Jun 23, 2025

Duplicate of #235 ?

no

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

@ohshazbot
Copy link

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

@op4lat
Copy link

op4lat commented Jun 26, 2025

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?

@Mr-HaleYa
Copy link

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
Copy link

Duplicate #235

@Mr-HaleYa
Copy link

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

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

Successfully merging this pull request may close these issues.

GOVEE Integration stopped working after HA update to 2025.6.1

7 participants