-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
Remove sync interface, add asyncio discovery #14
Remove sync interface, add asyncio discovery #14
Conversation
rytilahti
commented
Jan 12, 2020
•
edited
Loading
edited
- Closes Remove sync interface wrapper #12 and Convert discovery to use asyncio #7
- Converts cli to use asyncio.run() where needed.
- The children from smartstrips is being initialized during the first update call.
* Use asyncio.DatagramProtocol * Cleanup parameters, no more positional arguments Closes python-kasa#7
* This requires python-kasa#13 to be merged. Closes python-kasa#12. * Converts cli to use asyncio.run() where needed. * The children from smartstrips is being initialized during the first update call.
* Simplify tests and use pytest-asyncio. * Removed the emeter tests for child devices, as this information do not seem to exist (based on the dummy sysinfo data). Can be added again if needed. * Remove sync from docstrings.
This PR makes the tests pass again (some parts of the strip support was not implemented completely, and some users, e.g., homeassistant simply went and hacked around the internals to make it work), some details in the commit messages 🎉 |
Great work! I didn't know about Unfortunately, I don't have the devices to test it (except an HS110). Other than that one comment, LGTM. |
Same applies to me (i.e., only HS110 here, too :-) I'm hoping to pick up some testers soon enough, I'm still porting homeassistant integration at the moment. |