Closed Julien-Decoen closed 9 months ago
Although I can't reproduce the issue, this fix doesn't break anything so it's probably the right thing.
Closes #313
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
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 coroutinuehttps://developers.home-assistant.io/docs/asyncio_categorizing_functions#the-callback-function
Hi @bdraco ,
Thank you so much for your feedback on this pull request! To better understand your suggestion, would you mind providing a complete code example of how the function should look? It would help clarify the implementation and ensure I'm on the right track.
Thanks again for your time!
@callback
def load_entities(event):
Import callback
from homeassistant.core
I know what you folks are talking about. Had to deal with it in another issue Thanks for the feedback. I'm going to move this function back into utils and will change to a callback annotation. Thank you all on this ♥️
Related to https://github.com/jseidl/hass-magic_areas/issues/313