mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-23 03:33:35 +00:00
e98252ff17
This refactors `Discover.connect_single` by moving device instance construction into a separate device factory module. New `SmartDevice.connect(host, *, port, timeout, credentials, device_type)` class method replaces the functionality of `connect_single`, and also now allows constructing device instances without relying on UDP discovery for type discovery if `device_type` parameter is set. --------- Co-authored-by: Teemu R. <tpr@iki.fi> |
||
---|---|---|
.. | ||
fixtures | ||
__init__.py | ||
conftest.py | ||
newfakes.py | ||
test_bulb.py | ||
test_cli.py | ||
test_device_factory.py | ||
test_device_type.py | ||
test_dimmer.py | ||
test_discovery.py | ||
test_emeter.py | ||
test_klapprotocol.py | ||
test_lightstrip.py | ||
test_plug.py | ||
test_protocol.py | ||
test_readme_examples.py | ||
test_smartdevice.py | ||
test_strip.py | ||
test_usage.py |