suaveolent / ha-hoymiles-wifi

Home Assistant custom component for Hoymiles DTUs and the HMS-XXXXW-2T microinverters
MIT License
129 stars 9 forks source link

WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hoymiles_wifi' calls `async_add_job`, which is deprecated and will be removed in Home Assistant 2025.4 #30

Closed IIChrisII closed 4 months ago

IIChrisII commented 5 months ago

Describe the bug Not directly a bug but a warning of using a depricated home assistant function that will breake this integration in future. If you restart home assistant, you will find the following warning:

2024-04-12 14:45:46.030 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hoymiles_wifi' 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/hoymiles_wifi/coordinator.py, line 57: self._hass.async_add_job(, please create a bug report at https://github.com/suaveolent/ha-hoymiles-wifi/issues

To Reproduce Steps to reproduce the behavior:

  1. restart Home Assistant
  2. look in home-assistant.log

Expected behavior No log warning or error produced for this integration

Desktop (please complete the following information):

Additional context Integration hoymiles_wifi ist fully operable in latest version (0.2.1)

suaveolent commented 5 months ago

Thanks, will have a look at it.