Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detected code that calls async_forward_entry_setup #1020

Open
jhemak opened this issue Jul 3, 2024 · 7 comments · May be fixed by #1029
Open

Detected code that calls async_forward_entry_setup #1020

jhemak opened this issue Jul 3, 2024 · 7 comments · May be fixed by #1029

Comments

@jhemak
Copy link

jhemak commented Jul 3, 2024

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

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

yellowonblack commented Jul 6, 2024

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

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.

basnijholt added a commit that referenced this issue Aug 25, 2024
@michelbalzer
Copy link
Contributor

michelbalzer commented Oct 17, 2024

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

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

9dnsb commented Oct 22, 2024

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

cdmlb commented Oct 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants