basnijholt / adaptive-lighting

Adaptive Lighting custom component for Home Assistant
https://basnijholt.github.io/adaptive-lighting/
Apache License 2.0
1.92k stars 138 forks source link

Detected code that calls async_forward_entry_setup #1020

Open jhemak opened 4 months ago

jhemak commented 4 months ago

With 2024.7:

Detected code that calls async_forward_entry_setup for integration adaptive_lighting with title: <redacted> and entry_id: <redacted>, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.

stefanroelofs commented 4 months ago

The warning I get is slightly different:

WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'adaptive_lighting' calls async_forward_entry_setup for integration, adaptive_lighting with title: default and entry_id: <redacted>, which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead at custom_components/adaptive_lighting/__init__.py, line 69: hass.async_create_task(, please create a bug report at https://github.com/basnijholt/adaptive-lighting/issues

yellowonblack commented 4 months ago

The same here on 2024.7.1:

2024-07-06 14:28:44.921 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration adaptive_lighting with title: and entry_id: , during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.

mvoort1337 commented 3 months ago

Dead Bas and supporters, Amazing work on the integration, please keep up the good work.

Similar issue found in the logs: 2024-07-19 07:03:32.978 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration adaptive_lighting with title: kitchen and entry_id: <entity_id>, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.

System info: Core 2024.7.2 Supervisor 2024.06.2 Operating System 12.4 Frontend 20240710.0

Running in an VM. Zigbee2MQTT 1.39.0-1 WLED 0.14.4 Adaptive lighting custom component 1.22.0

Let me know if additional information is required.

michelbalzer commented 2 weeks ago
Logger: homeassistant.helpers.frame
Quelle: helpers/frame.py:188
Erstmals aufgetreten: 06:18:26 (1 Vorkommnisse)
Zuletzt protokolliert: 06:18:26

Detected that custom integration 'adaptive_lighting' calls async_forward_entry_setup for integration, adaptive_lighting with title: Schreibtisch Arbeitszimmer and entry_id: <redacted>, which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead at custom_components/adaptive_lighting/__init__.py, line 69: hass.async_create_task(, please create a bug report at https://github.com/basnijholt/adaptive-lighting/issues
sven-debug commented 2 weeks ago

Dears,

first I want to say I highly appreciate your hard work. When will you release a versin that is delivering the bugfix? Is there any schedule yet?

BR Sven

9dnsb commented 1 week ago

Have same issue

2024-10-22 09:44:04.998 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration adaptive_lighting with title: kitchen phillips and entry_id: 01JAQM9X1E76NVP3QT4HBRXVAA, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue. Stack (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 223, in sys.exit(main()) File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2223, in async_forward_entry_setup _report_non_awaited_platform_forwards(entry, "async_forward_entry_setup") File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1192, in _report_non_awaited_platform_forwards report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 155, in report _LOGGER.warning(msg, stack_info=True)

cdmlb commented 1 week ago

Logger: homeassistant.helpers.frame Source: helpers/frame.py:188 First occurred: 3:01:35 AM (1 occurrences) Last logged: 3:01:35 AM

Detected that custom integration 'adaptive_lighting' calls async_forward_entry_setup for integration, adaptive_lighting with title: Adaptive Lighting and entry_id: , which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead at custom_components/adaptive_lighting/init.py, line 69: hass.async_create_task(, please create a bug report at https://github.com/basnijholt/adaptive-lighting/issues

Adaptive Lighting v1.23.0

On going for many HA versions for months now.

Home Assistant Core v2024.10.4 Supervisor v2024.10.3 Operating System v13.2 Frontend v20241002.4