-
Notifications
You must be signed in to change notification settings - Fork 379
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
Discovery doesn't work in an async context #711
Comments
Another demonstration of the problem:
Calling the |
I have the same issue.. have you managed to find a workaround? I'm using FastAPI with a web page to trigger discovery.. it has exactly the same issue |
I could not find a workaround. This seems to be related to the fact that
|
I found a solution to the problem. There is a magic in zeroconf which automatically discovers if its created in an async loop or in a threaded environment.
|
For the example of @mikewebkist regarding
|
i'm trying to call my existing code in an async method, but the following code returns 0 devices:
I see the same issues with
pychromecast.discover_chromecasts
. Is there a workaround I could use?PyChromecast 13.0.5
The text was updated successfully, but these errors were encountered: