Fix/govee setup error
๐ง 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
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.
This PR is working as it should, please @LaggAt review and accept it.
Duplicate of #235 ?
Duplicate of #235 ?
no
Duplicate of #235 ?
no
actually, seems yes to me! Looks like 4 PRs all addressing the same issue
I'm starting to think it's time to start an official fork?
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?
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
Duplicate #235
This has been resolved in the latest release. PR can be closed https://github.com/LaggAt/hacs-govee/releases/2025.7.1