fuatakgun / eufy_security

Home Assistant integration to manage Eufy Security devices as cameras, home base stations, doorbells, motion and contact sensors.
842 stars 73 forks source link

Integration 'eufy_security' calls `async_add_job`, which is deprecated and will be removed in Home Assistant 2025.4 #1128

Closed iSteve-O closed 2 months ago

iSteve-O commented 2 months ago

Describe the bug

Error in the log.

To reproduce

Steps to reproduce the behavior:

  1. Power went out.
  2. Power came back.
  3. Checked Log.
  4. Saw error

Expected behavior

No error.

Additional information

Hardware Information;

2024-04-06 20:19:35.620 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'eufy_security' 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/eufy_security/__init__.py, line 53: hass.async_add_job(hass.config_entries.async_forward_entry_setup(config_entry, platform.value)), please create a bug report at https://github.com/fuatakgun/eufy_security/issues

Additional context

N/A

fuatakgun commented 2 months ago

Fixed in latest version