Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid deprecated function call for entry setup #69

Merged
merged 1 commit into from
Sep 29, 2024

Conversation

mathebox
Copy link
Collaborator

@mathebox mathebox commented Sep 5, 2024

This pull request resolves two deprecation warnings when calling async_forward_entry_setup:

  1. Use await
    Detected code that calls async_forward_entry_setup for integration teufel_raumfeld [..], during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1.
  2. Use async_forward_entry_setups over async_forward_entry_setup
    Detected that custom integration 'teufel_raumfeld' calls async_forward_entry_setup for integration, teufel_raumfeld […], which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead

Check this post for further reading: https://developers.home-assistant.io/blog/2024/06/12/async_forward_entry_setups/

Hope you don't mind me not creating separate tickets for this small fix. ✌️

@B5r1oJ0A9G B5r1oJ0A9G added the enhancement New feature or request label Sep 29, 2024
@B5r1oJ0A9G B5r1oJ0A9G merged commit 1925dd6 into B5r1oJ0A9G:master Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants