kugan49 / veolia-custom-component-HACS

Home Assistant custom component to retrieve information from Veolia
MIT License
18 stars 2 forks source link

Warning with Core 2024.7 deprecated code 2025.1 with fix proposition #39

Closed LGO44 closed 1 month ago

LGO44 commented 4 months ago

Core 2024.7.2 Supervisor 2024.06.2 Operating System 12.4 Interface utilisateur 20240703.0

2024-07-14 11:38:48.172 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'veolia' calls async_add_job, which is deprecated and will be removed in Home Assistant 2025.4; Please review https://developers.home-assistant.io/blog/2024/03/13/deprecate_add_run_job for replacement options at custom_components/veolia/init.py, line 52: hass.async_add_job(hass.config_entries.async_forward_entry_setup(entry, platform)), please create a bug report at https://github.com/kugan49/veolia-custom-component-HACS/issues 2024-07-14 11:38:48.208 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration, veolia with title: xxxxx@xxxx.fr - 063xxxxxxxxxxxxxxx and entry_id: 01a0c7d0cb5caf4c2d1ae3b254200eaa, which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead. 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 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 2099, in async_forward_entry_setup report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 151, in report _LOGGER.warning(msg, stack_info=True)

kugan49 commented 1 month ago

https://github.com/kugan49/veolia-custom-component-HACS/releases/tag/v1.3.1