Skip to content

fix: remove unnecessary await from async_all call#201

Merged
hugobloem merged 2 commits intomainfrom
fix/async-functions
May 2, 2025
Merged

fix: remove unnecessary await from async_all call#201
hugobloem merged 2 commits intomainfrom
fix/async-functions

Conversation

@hugobloem
Copy link
Owner

This pull request refactors methods in the custom_components/stateful_scenes/select.py file to improve asynchronous handling and ensure compatibility with async workflows. The most important changes include converting methods to asynchronous versions and updating their calls accordingly.

Asynchronous method refactoring:

  • Changed _get_available_off_scenes to _async_get_available_off_scenes and updated its implementation to be asynchronous.
  • Updated the call to _get_available_off_scenes to use the new asynchronous _async_get_available_off_scenes method.

Other updates:

  • Converted async_update_restore_state to an asynchronous method to align with the async framework.

@hugobloem hugobloem merged commit 761f372 into main May 2, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant