jonasbkarlsson / ev_smart_charging

Electric vehicle smart charging for Home Assistant.
MIT License
139 stars 18 forks source link

`ev_smart_charging` calls `async_add_job`, which is deprecated (HA 2024.4 and up) #252

Closed hmmbob closed 2 months ago

hmmbob commented 3 months ago

Version of the custom_component

Version 1.10.0

Describe the bug

HA 2024.4.0b5 reports the below log message.

Debug log

2024-04-02 16:32:17.996 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'ev_smart_charging' 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/ev_smart_charging/init.py, line 52: hass.async_add_job(

jonasbkarlsson commented 2 months ago

Thanks for reporting. Fixed in #257. Will be part of next release.