Garbage-Collection icon indicating copy to clipboard operation
Garbage-Collection copied to clipboard

After HA update this integration is broken

Open spider7611 opened this issue 7 months ago • 8 comments

Before you submit a new bug report, please check that

Describe the bug

Home Assistant update to 2025.6.0 this integration is broken. Can you fix this? TY!

Configuration

n

Debug logs

n

spider7611 avatar Jun 12 '25 06:06 spider7611

The error:

Logger: homeassistant.config_entries Source: config_entries.py:749 First occurred: 22:10:49 (3 occurrences) Last logged: 22:10:49

Error setting up entry Grijze Container for garbage_collection Error setting up entry Groene Contrainer for garbage_collection Error setting up entry Oud papier for garbage_collection 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/garbage_collection/init.py", line 230, in async_setup_entry hass.config_entries.async_forward_entry_setup( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'ConfigEntries' object has no attribute 'async_forward_entry_setup'. Did you mean: 'async_forward_entry_setups'?

prolife86 avatar Jun 12 '25 20:06 prolife86

Per the debugfile:

2025-06-12 22:10:48.978 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.13/site-packages/google/init.py:2: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. import('pkg_resources').declare_namespace(name)

2025-06-12 22:10:49.216 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.growatt_total_monthly (<class 'homeassistant.components.utility_meter.sensor.UtilityMeterSensor'>) is using state class 'total_increasing' which is impossible considering device class ('power') it is using; expected None or one of 'measurement'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+utility_meter%22 2025-06-12 22:10:49.217 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.growatt_total_yearly (<class 'homeassistant.components.utility_meter.sensor.UtilityMeterSensor'>) is using state class 'total_increasing' which is impossible considering device class ('power') it is using; expected None or one of 'measurement'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+utility_meter%22 2025-06-12 22:10:49.616 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Grijze Container for garbage_collection 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/garbage_collection/init.py", line 230, in async_setup_entry hass.config_entries.async_forward_entry_setup( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'ConfigEntries' object has no attribute 'async_forward_entry_setup'. Did you mean: 'async_forward_entry_setups'? 2025-06-12 22:10:49.620 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Groene Contrainer for garbage_collection 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/garbage_collection/init.py", line 230, in async_setup_entry hass.config_entries.async_forward_entry_setup( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'ConfigEntries' object has no attribute 'async_forward_entry_setup'. Did you mean: 'async_forward_entry_setups'? 2025-06-12 22:10:49.621 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Oud papier for garbage_collection 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/garbage_collection/init.py", line 230, in async_setup_entry hass.config_entries.async_forward_entry_setup( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'ConfigEntries' object has no attribute 'async_forward_entry_setup'. Did you mean: 'async_forward_entry_setups'? 2025-06-12 22:10:50.288 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'fontawesome' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call await hass.http.async_register_static_paths([StaticPathConfig("/fontawesome/main.js", "/config/custom_components/fontawesome/main.js", True)]) at custom_components/fontawesome/init.py, line 50: hass.http.register_static_path(. This will stop working in Home Assistant 2025.7, please report it to the author of the 'fontawesome' custom integration

prolife86 avatar Jun 13 '25 12:06 prolife86

Just keep in mind that this repo is not maintained anymore as announced 2 years ago...

adorobis avatar Jun 13 '25 13:06 adorobis

Just keep in mind that this repo is not maintained anymore as announced 2 years ago...

Thanks for the pointer! I see the fix for this also has been pending for quite some time. (FYI: entered the changes manually, did not work). Time to find another way to have my garbage present in HA.

prolife86 avatar Jun 13 '25 18:06 prolife86

Time to find another way to have my garbage present in HA.

I'll be switching just to use local calendar and some automations based on that. Should be sufficient for my schedules and not relying on custom integrations.

adorobis avatar Jun 13 '25 19:06 adorobis

This fix work great for me. I will apply this change using the File Editor in Home Assistant.

djlukas7 avatar Jun 18 '25 06:06 djlukas7

Here is the cause of the issue, removal of hass.config_entries.async_forward_entry_setup in Home Assistant 2025.6. https://developers.home-assistant.io/blog/2024/06/12/async_forward_entry_setups/

B0ndo2 avatar Aug 05 '25 18:08 B0ndo2

Here is the cause of the issue, removal of hass.config_entries.async_forward_entry_setup in Home Assistant 2025.6. https://developers.home-assistant.io/blog/2024/06/12/async_forward_entry_setups/

Image

adorobis avatar Aug 05 '25 19:08 adorobis