-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10 #140
Comments
According to the documentation, the async def turn_bulbs_on(bulb1, bulb2):
await asyncio.gather(bulb1.turn_on(PilotBuilder(warm_white=255)), bulb2.turn_on(PilotBuilder(warm_white=255)))
def main:
asyncio.run(async turn_bulbs_on(bulb1, bulb2)) Code is not tested. To be honest - the example code is a bit out of date 😄 |
…n 3.8, and scheduled for removal in Python 3.10 #140
This issue isn't fixed by 5164976. Try the following:
I haven't looked that deeply into fixing it, as I have a very vague understanding how how WiZ light networking works, but the exception is caused by the The example code produces a deprecation exception as well, since calling Removing the |
tl;dr: If you're doing a quick script and want to avoid:
One can:
To avoid the noise. |
Running the example code on Python 3.9:
Shows a DeprecationWarning:
Remove
loop=loop
for Python 3.10 compatibility.The text was updated successfully, but these errors were encountered: