| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
* 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.
|
I've only now noticed that the code in #14 is on top of this. So I've already reviewed it there :) |
Sorry, something went wrong.
| async def discover( | ||
| *, | ||
| target="255.255.255.255", | ||
| on_discovered=None, |
There was a problem hiding this comment.
A type hint might be useful here.
OTOH it's a private class.
Sorry, something went wrong.
There was a problem hiding this comment.
Indeed; this wasn't completely done. I'll make the changes in the other PR considering it already contains all of this. So I'm closing this now, thanks for the review!
Sorry, something went wrong.
* do not update inside __repr__ * Convert discovery to asyncio * Use asyncio.DatagramProtocol * Cleanup parameters, no more positional arguments Closes #7 * Remove sync interface * This requires #13 to be merged. Closes #12. * Converts cli to use asyncio.run() where needed. * The children from smartstrips is being initialized during the first update call. * Convert on and off commands to use asyncio.run * conftest: do the initial update automatically for the device, cleans up tests a bit * return subdevices alias for strip plugs, remove sync from docstrings * Make tests pass using pytest-asyncio * 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. * Fix incorrect type hint * Add type hints and some docstrings to discovery
* do not update inside __repr__ * Convert discovery to asyncio * Use asyncio.DatagramProtocol * Cleanup parameters, no more positional arguments Closes python-kasa#7 * Remove sync interface * 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. * Convert on and off commands to use asyncio.run * conftest: do the initial update automatically for the device, cleans up tests a bit * return subdevices alias for strip plugs, remove sync from docstrings * Make tests pass using pytest-asyncio * 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. * Fix incorrect type hint * Add type hints and some docstrings to discovery
| Back | FazBrowse Home | New Git URL |
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.