Depricated code call
Hi, Battery Sim is throwing the following warning about a deprication:
2024-08-25 09:10:24.029 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration battery_sim with title: battery_sim: LG Chem and entry_id: 01J5AM2FWA06D8NJG928GRYT0P, 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 2161, in async_forward_entry_setup
_report_non_awaited_platform_forwards(entry, "async_forward_entry_setup")
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1201, 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)
Logger: homeassistant.helpers.frame Source: helpers/frame.py:151 First occurred: 22:06:12 (8 occurrences) Last logged: 22:06:12
Detected code that calls async_forward_entry_setup for integration battery_sim with title: battery_sim: Tesla Powerwall and entry_id: 27ee81e28d1d6a9c15df83ed71e233dc, 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. Detected code that calls async_forward_entry_setup for integration battery_sim with title: battery_sim: Brok power and entry_id: f2dd4afc19daaf8a4a80a2a15abfa8a8, 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.
Logger: homeassistant.helpers.frame Source: helpers/frame.py:184 First occurred: 22:06:10 (1 occurrences) Last logged: 22:06:10
Detected that custom integration 'battery_sim' calls async_forward_entry_setup for integration, battery_sim with title: battery_sim: Tesla Powerwall and entry_id: 27ee81e28d1d6a9c15df83ed71e233dc, which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead at custom_components/battery_sim/init.py, line 137: hass.async_create_task(, please create a bug report at https://github.com/hif2k1/battery_sim/issues
Another one: Detected code that calls async_forward_entry_setup for integration battery_sim with title: battery_sim: Enphase 5P (3rd Gen) and entry_id: 01J8YNB2X4W3C996M34FPQ8KP7, 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.
I'll try and up date it in time.
On Sun, 29 Sept 2024 at 21:42, eekhoorn @.***> wrote:
Another one: Detected code that calls async_forward_entry_setup for integration battery_sim with title: battery_sim: Enphase 5P (3rd Gen) and entry_id: 01J8YNB2X4W3C996M34FPQ8KP7, 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.
— Reply to this email directly, view it on GitHub https://github.com/hif2k1/battery_sim/issues/134#issuecomment-2381595776, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFAIZGN4AF435ZJURLKORILZZBQ3PAVCNFSM6AAAAABNCJM6B6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBRGU4TKNZXGY . You are receiving this because you are subscribed to this thread.Message ID: @.***>