vinteo / hass-opensprinkler

OpenSprinkler Integration for Home Assistant
MIT License
204 stars 40 forks source link

Deprecation warning in HA 2024.7.1 (and likely at least a few versions prior) #295

Closed breakthestatic closed 2 months ago

breakthestatic commented 2 months ago

I'm currently seeing a deprecation warning in the logs due to changes to the way custom components are set up. I forget offhand which version made the change, but it's definitely occurring on the current version - 2024.7.1

2024-07-07 07:26:50.644 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'opensprinkler' calls async_forward_entry_setup for integration, opensprinkler with title: OpenSprinkler and entry_id: XXXXXXXXXXXXXXXXXXX, which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead at custom_components/opensprinkler/__init__.py, line 116: hass.async_create_task(, please create a bug report at https://github.com/vinteo/hass-opensprinkler/issues

I searched through the issues and PRs in this repo but didn't see anything referencing this deprecation yet. Sorry if it has already been reported. I think https://developers.home-assistant.io/blog/2024/06/12/async_forward_entry_setups/ has a bit more info on the required changes.