pinkywafer / Anniversaries

Anniversary Countdown Sensor for Home Assistant
MIT License
169 stars 26 forks source link

Warning in systemlog about deprecated functions (2024.9) #161

Open fribse opened 7 months ago

fribse commented 7 months ago

Anniversaries is at 5.2.0

Saw two warnings about deprecated functions.

First one is the closest version, second is some time away...

Detected that custom integration 'anniversaries' sets "options" directly to update a config entry. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to use async_update_entry instead at custom_components/anniversaries/__init__.py, line 62: config_entry.options = config_entry.data, please report it to the author of the 'anniversaries' custom integration And Detected that custom integration 'anniversaries' callsasync_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 65: hass.async_add_job(, please report it to the author of the 'anniversaries' custom integration

Just a heads up :-)

SupremeSports commented 2 months ago

Also got this one:

Detected code that calls async_forward_entry_setup for integration, anniversaries with title: [redacted]'s Birthday and entry_id: 908e1d3405eda80e034fe6c2f7a052d3, which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead. Please report this issue.

loryanstrant commented 2 weeks ago

Seeing the same one as @SupremeSports in mine too. Even deleted all existing entries, restarted HA, added one back in and instantly got that message.

BebeMischa commented 2 weeks ago

Seeing the same one as @SupremeSports in mine too. Even deleted all existing entries, restarted HA, added one back in and instantly got that message.

Which version of Anniversaries are you running?

fribse commented 2 weeks ago

I removed all the anniversaries defined in the GUI, and added them back in yaml, and it works here. This is anniversaries 6.0.0

BebeMischa commented 2 weeks ago

That's strange. I have no more issues with UI generated on 6.0.0 version...