| 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.
* 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 🎉 |
Sorry, something went wrong.
|
Great work! I didn't know about pytest.mark.asyncio. Nice work! Unfortunately, I don't have the devices to test it (except an HS110). Other than that one comment, LGTM. |
Sorry, something went wrong.
|
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. |
Sorry, something went wrong.
* 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 |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.