Skip to content

Deprecation warning HASS 2025.1: async_forward_entry_setup during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done #18

@alydevs

Description

@alydevs
homeassistant-1  | 2024-12-11 13:01:20.043 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration technicolor with title: 192.168.0.2 and entry_id: 01JDRCGMWN57GJ29DPGMZ5X7KE, 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.
homeassistant-1  | Stack (most recent call last):
homeassistant-1  |   File "<frozen runpy>", line 198, in _run_module_as_main
homeassistant-1  |   File "<frozen runpy>", line 88, in _run_code
homeassistant-1  |   File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
homeassistant-1  |     sys.exit(main())
homeassistant-1  |   File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
homeassistant-1  |     exit_code = runner.run(runtime_conf)
homeassistant-1  |   File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run
homeassistant-1  |     return loop.run_until_complete(setup_and_run_hass(runtime_config))
homeassistant-1  |   File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
homeassistant-1  |     self.run_forever()
homeassistant-1  |   File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
homeassistant-1  |     self._run_once()
homeassistant-1  |   File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once
homeassistant-1  |     handle._run()
homeassistant-1  |   File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
homeassistant-1  |     self._context.run(self._callback, *self._args)
homeassistant-1  |   File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2218, in async_forward_entry_setup
homeassistant-1  |     _report_non_awaited_platform_forwards(entry, "async_forward_entry_setup")
homeassistant-1  |   File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1192, in _report_non_awaited_platform_forwards
homeassistant-1  |     report(
homeassistant-1  |   File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 155, in report
homeassistant-1  |     _LOGGER.warning(msg, stack_info=True)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions