bob-tm / ha-openhab

🏠 openHAB custom integration for Home Assistant
MIT License
5 stars 0 forks source link

`async_add_job`, is deprecated and will be removed in Home Assistant 2025.4 #1

Closed kovacsla closed 1 week ago

kovacsla commented 4 months ago

Detected that custom integration 'openhab' 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/openhab/init.py, line 56: hass.async_add_job(, please create a bug report at https://github.com/bob-tm/ha-openhab/issues

bob-tm commented 4 months ago

Please try master with all three fixes

kovacsla commented 4 months ago

Perfect it is working. All three fixes.

I found two other mistiques (sorry):

TEMP_CELSIUS was used from openhab, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead.

TEMP_FAHRENHEIT was used from openhab, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.FAHRENHEIT instead.

bob-tm commented 3 months ago

Fixed in master

kovacsla commented 3 months ago

Perfect "master" is working. All openhab errors disappeared in the log. Thx

kovacsla commented 2 months ago

Today I upgraded HACS from 1.34 => 2.0, then OpenHAB integration offered me to upgrade (I didn't notice that it's an older version than the one I have). I did it and the errors reappeared. I reset the "master" version to 0.5.9. The new version of HACS does not even let you install the "master" version. Could you put the above changes into a new version? Thx.
image image

bob-tm commented 2 months ago

0.6 is released

kovacsla commented 2 months ago

Perfect it is working. Thx