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

GOVEE Integration stopped working after HA update to 2025.6.1

Open rlovick opened this issue 7 months ago • 42 comments

Upgraded HA to version 2025.6.1 today. Govee integration no longer working following log entry:

Logger: homeassistant.config_entries Source: config_entries.py:749 First occurred: 7:52:05 PM (1 occurrence) Last logged: 7:52:05 PM

Error setting up entry govee for govee Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 749, in __async_setup_with_context result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/govee/init.py", line 72, in async_setup_entry await hass.config_entries.async_forward_entry_setup(entry, component) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'ConfigEntries' object has no attribute 'async_forward_entry_setup'. Did you mean: 'async_forward_entry_setups'?

rlovick avatar Jun 14 '25 01:06 rlovick

This fixed it for me:

In custom_components/govee/init.py, find this line:

await hass.config_entries.async_forward_entry_setup(entry, component) Change it to:

await hass.config_entries.async_forward_entry_setups(entry, [component])

knicka5171 avatar Jun 14 '25 01:06 knicka5171

This fixed it for me:

In custom_components/govee/init.py, find this line:

await hass.config_entries.async_forward_entry_setup(entry, component) Change it to:

await hass.config_entries.async_forward_entry_setups(entry, [component])

yes, that also fixed it for me. Thanks

trentklo avatar Jun 14 '25 03:06 trentklo

Yep. That fixed it for me too. Thx.

rlovick avatar Jun 14 '25 04:06 rlovick

Can also confirm that it worked with that. Thanks.

Soodium avatar Jun 14 '25 12:06 Soodium

This fixed it for me:

In custom_components/govee/init.py, find this line:

await hass.config_entries.async_forward_entry_setup(entry, component) Change it to:

await hass.config_entries.async_forward_entry_setups(entry, [component])

Where do you go to find this?

DrJenniges86 avatar Jun 14 '25 12:06 DrJenniges86

Thanks for the info and my 1st edit in files lol. OK I had to do it twice,

SiddyHq avatar Jun 14 '25 14:06 SiddyHq

also worked, had to restart HA not just reload the integration. File is named __init__.py and I was able to edit it directly in HA through the file editor addon.

Gletob avatar Jun 14 '25 23:06 Gletob

This

This fixed it for me:

In custom_components/govee/init.py, find this line:

await hass.config_entries.async_forward_entry_setup(entry, component) Change it to:

await hass.config_entries.async_forward_entry_setups(entry, [component])

This fixed it for me too. Thanks :) 👍

shadtas avatar Jun 15 '25 08:06 shadtas

Thanks a lot!

kvmgz avatar Jun 15 '25 09:06 kvmgz

This fixed it for me:

In custom_components/govee/init.py, find this line:

await hass.config_entries.async_forward_entry_setup(entry, component) Change it to:

await hass.config_entries.async_forward_entry_setups(entry, [component])

Thank you! This worked for me as well after restarting HA.

Izzu avatar Jun 15 '25 12:06 Izzu

After applying the change on the init,py file I am getting a new error instead:

Logger: homeassistant.config_entries Source: config_entries.py:749 First occurred: 4:44:26 PM (1 occurrence) Last logged: 4:44:26 PM

Error setting up entry govee for govee Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 749, in __async_setup_with_context result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/govee/init.py", line 72, in async_setup_entry await hass.config_entries.async_forward_entry_setups(entry, component) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2568, in async_forward_entry_setups await integration.async_get_platforms(platforms) File "/usr/src/homeassistant/homeassistant/loader.py", line 1102, in async_get_platforms if platform := self._get_platform_cached_or_raise(platform_name): ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 1193, in _get_platform_cached_or_raise raise ModuleNotFoundError( ...<2 lines>... ) ModuleNotFoundError: Platform govee.l not found

Has anyone also experienced this?

liontheturtle avatar Jun 15 '25 14:06 liontheturtle

After applying the change on the init,py file I am getting a new error instead:

Logger: homeassistant.config_entries Source: config_entries.py:749 First occurred: 4:44:26 PM (1 occurrence) Last logged: 4:44:26 PM

Error setting up entry govee for govee Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 749, in __async_setup_with_context result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/govee/init.py", line 72, in async_setup_entry await hass.config_entries.async_forward_entry_setups(entry, component) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2568, in async_forward_entry_setups await integration.async_get_platforms(platforms) File "/usr/src/homeassistant/homeassistant/loader.py", line 1102, in async_get_platforms if platform := self._get_platform_cached_or_raise(platform_name): ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 1193, in _get_platform_cached_or_raise raise ModuleNotFoundError( ...<2 lines>... ) ModuleNotFoundError: Platform govee.l not found

Has anyone also experienced this?

Did you change the line to exactly the following? Note, there are square brackets surrounding the word "component".

await hass.config_entries.async_forward_entry_setups(entry, [component])

createdbymichael avatar Jun 15 '25 14:06 createdbymichael

After applying the change on the init,py file I am getting a new error instead: Logger: homeassistant.config_entries Source: config_entries.py:749 First occurred: 4:44:26 PM (1 occurrence) Last logged: 4:44:26 PM Error setting up entry govee for govee Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 749, in __async_setup_with_context result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/govee/init.py", line 72, in async_setup_entry await hass.config_entries.async_forward_entry_setups(entry, component) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2568, in async_forward_entry_setups await integration.async_get_platforms(platforms) File "/usr/src/homeassistant/homeassistant/loader.py", line 1102, in async_get_platforms if platform := self._get_platform_cached_or_raise(platform_name): ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 1193, in _get_platform_cached_or_raise raise ModuleNotFoundError( ...<2 lines>... ) ModuleNotFoundError: Platform govee.l not found Has anyone also experienced this?

Did you change the line to exactly the following? Note, there are square brackets surrounding the word "component".

await hass.config_entries.async_forward_entry_setups(entry, [component])

I'm an idiot, completely went over the change to a list... thank you so much! Integration is working now

liontheturtle avatar Jun 15 '25 15:06 liontheturtle

Looks like #235 (oddly labeled fix 234...) also fixes this issue.

@LaggAt - are you still actively working on this project? I'm sure there are folks that would be willing to help maintain it.

arrrghhh avatar Jun 15 '25 22:06 arrrghhh

This fixed it for me:

In custom_components/govee/init.py, find this line:

await hass.config_entries.async_forward_entry_setup(entry, component) Change it to:

await hass.config_entries.async_forward_entry_setups(entry, [component])

Thanks it works!

oljns avatar Jun 16 '25 08:06 oljns

Thanks, that worked

bamboo2095 avatar Jun 16 '25 12:06 bamboo2095

This solution alone did not fix my Govee lights, as after I changed the line to init.py and restarted HA, I got "entity not found" instead of it just being grayed out. Seems that I also had to request new API key via Govee app. After that, HA found my light again :)

GileanEU avatar Jun 17 '25 03:06 GileanEU

Thank's ,now it works again!

casottohomeassistant avatar Jun 17 '25 08:06 casottohomeassistant

Confirming this fixed the issue. Thanks @knicka5171

alexs-github-account avatar Jun 17 '25 16:06 alexs-github-account

This fixed it for me:

In custom_components/govee/init.py, find this line:

await hass.config_entries.async_forward_entry_setup(entry, component) Change it to:

await hass.config_entries.async_forward_entry_setups(entry, [component])

Bros over here solving first world problems with a “s” and brackets. This worked for me, thank you @knicka5171

Thataustinguy avatar Jun 17 '25 19:06 Thataustinguy

Looks like #235 (oddly labeled fix 234...) also fixes this issue.

It's referring to issue #234, the PR is #235.

mrala avatar Jun 17 '25 22:06 mrala

Good evening, I replaced the line as indicated in the init.py file, do I need to rename the file?

Have underscore on mine

SophieNob avatar Jun 21 '25 23:06 SophieNob

After applying the change on the init,py file I am getting a new error instead: Logger: homeassistant.config_entries Source: config_entries.py:749 First occurred: 4:44:26 PM (1 occurrence) Last logged: 4:44:26 PM Error setting up entry govee for govee Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 749, in __async_setup_with_context result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/govee/init.py", line 72, in async_setup_entry await hass.config_entries.async_forward_entry_setups(entry, component) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2568, in async_forward_entry_setups await integration.async_get_platforms(platforms) File "/usr/src/homeassistant/homeassistant/loader.py", line 1102, in async_get_platforms if platform := self._get_platform_cached_or_raise(platform_name): ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 1193, in _get_platform_cached_or_raise raise ModuleNotFoundError( ...<2 lines>... ) ModuleNotFoundError: Platform govee.l not found Has anyone also experienced this?

Did you change the line to exactly the following? Note, there are square brackets surrounding the word "component". await hass.config_entries.async_forward_entry_setups(entry, [component])

I'm an idiot, completely went over the change to a list... thank you so much! Integration is working now

And I just made exactly the same mistake, so at least you're not alone!

davethetallguy avatar Jun 24 '25 01:06 davethetallguy

Good evening, I replaced the line as indicated in the init.py file, do I need to rename the file?

Have underscore on mine

Just change what the man said above. Add the square brackets. Dont change file names and nothing else.

omar10wahab avatar Jun 27 '25 00:06 omar10wahab

It worked after i made the change in the line and restarted HA, thanks.

wuppsi avatar Jun 27 '25 23:06 wuppsi

Thank you so much, working fine after new line.

Krakoukas73 avatar Jun 29 '25 12:06 Krakoukas73

Seems like TheOneOgre stepped in and forked it to a new repo: https://github.com/hacs/default/pull/3700 https://github.com/TheOneOgre/govee-cloud

WildEchoWanderer avatar Jun 29 '25 16:06 WildEchoWanderer

Seems like TheOneOgre stepped in and forked it to a new repo: https://github.com/hacs/default/pull/3700 https://github.com/TheOneOgre/govee-cloud

Yes, currently working on getting the default govee integration moved over to my repo so all current users will just have to update, or at the very most install the new integration and it'll take over the existing configs.

TheOneOgre avatar Jun 29 '25 20:06 TheOneOgre

Yes, currently working on getting the default govee integration moved over to my repo so all current users will just have to update, or at the very most install the new integration and it'll take over the existing configs.

Awesome waiting for this update then 👍

dnestico avatar Jun 29 '25 21:06 dnestico

Per me è stato così:

In custom_components/govee/ init .py, trova questa riga:

attendi hass.config_entries.async_forward_entry_setup(voce, componente) Modificalo in:

attendi hass.config_entries.async_forward_entry_setups(voce, [componente])

In my init.py I don't have this line of code

bootpi avatar Jul 02 '25 14:07 bootpi