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

Forwarding setup to config entry platforms (HA 2024.7) #102

Open
hmmbob opened this issue Jun 26, 2024 · 1 comment · Fixed by #104
Open

Forwarding setup to config entry platforms (HA 2024.7) #102

hmmbob opened this issue Jun 26, 2024 · 1 comment · Fixed by #104
Assignees
Labels
2024.7 bug Something isn't working

Comments

@hmmbob
Copy link
Contributor

hmmbob commented Jun 26, 2024

HA 2024.7 will generate a new warning:

https://developers.home-assistant.io/blog/2024/06/12/async_forward_entry_setups/

hass.config_entries.async_forward_entry_setup(entry, component)

edit:

And the actual errors, now I've upgraded to the beta:

2024-06-26 19:22:01.848 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'mitsubishi_wf_rac' calls async_forward_entry_setup for integration, mitsubishi_wf_rac with title: Airco MBR and entry_id: 0390fd8024a31a50bb8b853725048b38, which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead at custom_components/mitsubishi_wf_rac/__init__.py, line 55: hass.async_create_task(, please create a bug report at https://github.com/jeatheak/Mitsubishi-WF-RAC-Integration/issues

2024-06-26 19:22:07.823 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration mitsubishi_wf_rac with title: Airco MBR and entry_id: 0390fd8024a31a50bb8b853725048b38, 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 "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
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 190, 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 2122, in async_forward_entry_setup
_report_non_awaited_platform_forwards(entry, "async_forward_entry_setup")
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1175, in _report_non_awaited_platform_forwards
report(
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 151, in report
_LOGGER.warning(msg, stack_info=True)
@jeatheak jeatheak self-assigned this Jun 26, 2024
@jeatheak jeatheak added bug Something isn't working 2024.7 labels Jun 26, 2024
@jeatheak
Copy link
Owner

jeatheak commented Jul 3, 2024

should be fixed in 2024.7-beta.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2024.7 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants