-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Warning in systemlog about deprecated functions (2025.4) #179
Comments
I've fixed this in my local repo. Will submit PR for it :-). Relatively straightforward fix. |
I think there might be something wrong with packaging of release. In the main repo, I see that this is fixed but if I download via HACS, it seems to be old version. @pinkywafer : release package contain async_forward_entry_setup call with hass.async_add_job wrapper while your master repo contains fixed version with await ... could you maybe check if there went something wrong in packaging process? (commit #168 ) |
In the init.py file in Anniversari.zip the code is different from the code in RAW. I have manually replaced the content and now it seems to no longer give errors. Thanks for the support. |
I've posted a new release (6.0.1) which should hopefully resolve this issue. Can anyone please confirm? |
thanks a lot! does it take a while for new version to appear on github since I don't see it yet? happy to test off course :-) |
Should be there now... I'd forgotten to mark it as latest! |
Mounted 6.0.1 via Hacs and everything works egraanly. thank you very much |
I installed Anniversaries version 6.0.0 via HACS
In the logs I find the following message.
2024-12-09 07:22:06.909 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'anniversaries' 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/anniversaries/init.py, line 74: hass.async_add_job(, please report it to the author of the 'anniversaries' custom integration2024-12-09 07:22:06.914 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration, anniversaries with title: Giorni al Natale and entry_id: 01JEB7MJ1505RAGR9WKCRGQFVH, 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 "/srv/homeassistant/bin/hass", line 8, in
sys.exit(main())
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/main.py", line 209, in main
exit_code = runner.run(runtime_conf)
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/runner.py", line 189, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 651, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 618, in run_forever
self._run_once()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1951, in _run_once
handle._run()
File "/usr/local/lib/python3.12/asyncio/events.py", line 84, in _run
self._context.run(self._callback, *self._args)
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/config_entries.py", line 2295, in async_forward_entry_setup
report(
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/frame.py", line 156, in report
_LOGGER.warning(msg, stack_info=True)
The text was updated successfully, but these errors were encountered: