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

async_add_job is deprecated #66

Open
4 tasks done
daniele-athome opened this issue Sep 7, 2024 · 1 comment
Open
4 tasks done

async_add_job is deprecated #66

daniele-athome opened this issue Sep 7, 2024 · 1 comment

Comments

@daniele-athome
Copy link

System Health details

System Information

version core-2024.9.1
installation_type Home Assistant Core
dev false
hassio false
docker false
user homeassistant
virtualenv true
python_version 3.12.4
os_name Linux
os_version 6.7.12+bpo-amd64
arch x86_64
timezone Europe/Rome
config_dir /home/homeassistant/.homeassistant
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
HACS Data ok
GitHub API Calls Remaining 5000
Installed Version 2.0.1
Stage running
Available Repositories 1397
Downloaded Repositories 43
Dashboards
dashboards 3
resources 25
views 8
mode yaml
Recorder
oldest_recorder_run 9 luglio 2024 alle ore 10:42
current_recorder_run 7 settembre 2024 alle ore 13:17
estimated_db_size 1946.98 MiB
database_engine mysql
database_version 10.11.6

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of currently previous issues..

Describe the issue

Just a warning for a deprecation. Details in the log.

Reproduction steps

  1. Just start HA

Debug logs

set 07 13:20:20 scatola hass[2904472]: 2024-09-07 13:20:20.366 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'chore_helper' 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/chore_helper/__init__.py, line 256: hass.async_add_job(, please create a bug report at https://github.com/bmcclure/ha-chore-helper/issues
set 07 13:20:20 scatola hass[2904472]: 2024-09-07 13:20:20.369 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration, chore_helper with title: chore_water_closet1_clean and entry_id: 01J2BS7ED7CDFTSJEBB5MZN83G, which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead. Please report this issue.
set 07 13:20:20 scatola hass[2904472]: Stack (most recent call last):
set 07 13:20:20 scatola hass[2904472]:   File "/home/homeassistant/hass/bin/hass", line 8, in <module>
set 07 13:20:20 scatola hass[2904472]:     sys.exit(main())
set 07 13:20:20 scatola hass[2904472]:   File "/home/homeassistant/hass/lib/python3.12/site-packages/homeassistant/__main__.py", line 209, in main
set 07 13:20:20 scatola hass[2904472]:     exit_code = runner.run(runtime_conf)
set 07 13:20:20 scatola hass[2904472]:   File "/home/homeassistant/hass/lib/python3.12/site-packages/homeassistant/runner.py", line 189, in run
set 07 13:20:20 scatola hass[2904472]:     return loop.run_until_complete(setup_and_run_hass(runtime_config))
set 07 13:20:20 scatola hass[2904472]:   File "/usr/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
set 07 13:20:20 scatola hass[2904472]:     self.run_forever()
set 07 13:20:20 scatola hass[2904472]:   File "/usr/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
set 07 13:20:20 scatola hass[2904472]:     self._run_once()
set 07 13:20:20 scatola hass[2904472]:   File "/usr/lib/python3.12/asyncio/base_events.py", line 1987, in _run_once
set 07 13:20:20 scatola hass[2904472]:     handle._run()
set 07 13:20:20 scatola hass[2904472]:   File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run
set 07 13:20:20 scatola hass[2904472]:     self._context.run(self._callback, *self._args)
set 07 13:20:20 scatola hass[2904472]:   File "/home/homeassistant/hass/lib/python3.12/site-packages/homeassistant/config_entries.py", line 2161, in async_forward_entry_setup
set 07 13:20:20 scatola hass[2904472]:     report(
set 07 13:20:20 scatola hass[2904472]:   File "/home/homeassistant/hass/lib/python3.12/site-packages/homeassistant/helpers/frame.py", line 151, in report
set 07 13:20:20 scatola hass[2904472]:     _LOGGER.warning(msg, stack_info=True)

Diagnostics dump

No response

@daniele-athome
Copy link
Author

daniele-athome commented Sep 7, 2024

P.S. I had to determine the installed component version by some other means, but you should really edit manifest.json to match the actual version.

EDIT: actually there are two warnings, one of them should have been fixed in 0.5.2, interesting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant