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

Add async to load_entities method in add_entities_when_ready #315

Merged
merged 1 commit into from
Feb 10, 2024

Conversation

Julien-Decoen
Copy link
Contributor

Related to #313

@jseidl
Copy link
Owner

jseidl commented Feb 10, 2024

Although I can't reproduce the issue, this fix doesn't break anything so it's probably the right thing.

Closes #313

@jseidl jseidl added the hotfix Hotfix label Feb 10, 2024
@jseidl jseidl added this to the 3.1.0 milestone Feb 10, 2024
@jseidl jseidl merged commit 485314a into jseidl:main Feb 10, 2024
1 check passed
@bdraco
Copy link

bdraco commented Apr 27, 2024

If you decorate the function with @callback it will run in the event loop instead and than you don't need to make it a coroutinue

https://developers.home-assistant.io/docs/asyncio_categorizing_functions#the-callback-function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotfix Hotfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants