Closed
Description
The problem
My log shows:
Detected code that calls async_forward_entry_setup for integration kodi_media_sensors with title: Kodi Media Sensors (10.112.59.112) and entry_id: 01JH0ANXB09G937Z8K6Q9T4AF9, 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.
What version of Home Assistant Core has the issue?
core-2025.1.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Kodi-Media-Sensors
Link to integration documentation on our website
https://github.com/jtbgroup/kodi-media-sensors
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
2025-01-12 21:58:10.954 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration kodi_media_sensors with title: Kodi Media Sensors (10.112.59.112) and entry_id: 01JH0ANXB09G937Z8K6Q9T4AF9, 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 227, in <module>
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/__main__.py", line 213, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 154, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.13/asyncio/base_events.py", line 707, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.13/asyncio/base_events.py", line 678, in run_forever
self._run_once()
File "/usr/local/lib/python3.13/asyncio/base_events.py", line 2033, in _run_once
handle._run()
File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run
self._context.run(self._callback, *self._args)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2353, in async_forward_entry_setup
_report_non_awaited_platform_forwards(entry, "async_forward_entry_setup")
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1199, in _report_non_awaited_platform_forwards
report_usage(
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 234, in report_usage
_LOGGER.warning(msg, stack_info=True)
2025-01-12 21:58:10.964 INFO (MainThread) [homeassistant.components.sensor] Setting up kodi_recently_added.sensor
Additional information
In general the integration seems to work fine