python-kasa/kasa/tests
J. Nick Koston e98252ff17
Move connect_single to SmartDevice.connect (#538)
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>
2023-11-21 23:48:53 +01:00
..
fixtures Add new HS100(UK) fixture (#489) 2023-08-03 13:20:09 +02:00
__init__.py mass rename to (python-)kasa (#1) 2019-12-18 09:11:18 +01:00
conftest.py Make timeout adjustable (#494) 2023-10-07 20:58:00 +02:00
newfakes.py Do not do update() in discover_single (#542) 2023-11-21 21:58:41 +01:00
test_bulb.py Allow effect presets seen on light strips (#440) 2023-04-01 16:15:58 +02:00
test_cli.py Move connect_single to SmartDevice.connect (#538) 2023-11-21 23:48:53 +01:00
test_device_factory.py Move connect_single to SmartDevice.connect (#538) 2023-11-21 23:48:53 +01:00
test_device_type.py Move connect_single to SmartDevice.connect (#538) 2023-11-21 23:48:53 +01:00
test_dimmer.py Fix pytest warnings about asyncio (#397) 2022-11-13 23:34:47 +01:00
test_discovery.py Move connect_single to SmartDevice.connect (#538) 2023-11-21 23:48:53 +01:00
test_emeter.py Fix pytest warnings about asyncio (#397) 2022-11-13 23:34:47 +01:00
test_klapprotocol.py Add klap protocol (#509) 2023-11-20 14:17:10 +01:00
test_lightstrip.py Add transition parameter to lightstrip's set_effect (#416) 2023-02-18 18:03:54 +01:00
test_plug.py Fix pytest warnings about asyncio (#397) 2022-11-13 23:34:47 +01:00
test_protocol.py Make device port configurable (#471) 2023-07-10 01:55:27 +02:00
test_readme_examples.py Drop python 3.7 support (#455) 2023-05-17 20:03:08 +02:00
test_smartdevice.py Move connect_single to SmartDevice.connect (#538) 2023-11-21 23:48:53 +01:00
test_strip.py Some release preparation janitoring (#432) 2023-02-18 22:09:35 +01:00
test_usage.py Return usage.get_{monthstat,daystat} in expected format (#394) 2023-02-18 20:53:02 +01:00