python-kasa/kasa/tests
Teemu R 64da736717
Add generic interface for accessing device features (#741)
This adds a generic interface for all device classes to introspect available device features,
that is necessary to make it easier to support a wide variety of supported devices with different set of features.
This will allow constructing generic interfaces (e.g., in homeassistant) that fetch and change these features without hard-coding the API calls.

`Device.features()` now returns a mapping of `<identifier, Feature>` where the `Feature` contains all necessary information (like the name, the icon, a way to get and change the setting) to present and change the defined feature through its interface.
2024-02-15 16:25:08 +01:00
..
fixtures Fix devtools for P100 and add fixture (#753) 2024-02-14 19:43:10 +00:00
__init__.py mass rename to (python-)kasa (#1) 2019-12-18 09:11:18 +01:00
conftest.py Fix discovery cli to print devices not printed during discovery timeout (#670) 2024-02-05 17:53:09 +00:00
fakeprotocol_iot.py Various test code cleanups (#725) 2024-01-29 20:26:39 +01:00
fakeprotocol_smart.py Various test code cleanups (#725) 2024-01-29 20:26:39 +01:00
test_aestransport.py Fix for P100 on fw 1.1.3 login_version none (#751) 2024-02-14 19:13:28 +00:00
test_bulb.py Refactor devices into subpackages and deprecate old names (#716) 2024-02-04 16:20:08 +01:00
test_childdevice.py Refactor devices into subpackages and deprecate old names (#716) 2024-02-04 16:20:08 +01:00
test_cli.py Add generic interface for accessing device features (#741) 2024-02-15 16:25:08 +01:00
test_device_factory.py Ensure connections are closed when cli is finished (#752) 2024-02-14 17:03:50 +00:00
test_device_type.py Refactor devices into subpackages and deprecate old names (#716) 2024-02-04 16:20:08 +01:00
test_deviceconfig.py Unignore F401 for tests (#724) 2024-01-30 00:15:58 +01:00
test_dimmer.py Refactor devices into subpackages and deprecate old names (#716) 2024-02-04 16:20:08 +01:00
test_discovery.py Fix discovery cli to print devices not printed during discovery timeout (#670) 2024-02-05 17:53:09 +00:00
test_emeter.py Refactor devices into subpackages and deprecate old names (#716) 2024-02-04 16:20:08 +01:00
test_feature.py Add generic interface for accessing device features (#741) 2024-02-15 16:25:08 +01:00
test_httpclient.py Avoid rebuilding urls for every request (#715) 2024-01-29 15:26:00 +00:00
test_klapprotocol.py Reduce AuthenticationExceptions raising from transports (#740) 2024-02-05 21:49:26 +01:00
test_lightstrip.py Refactor devices into subpackages and deprecate old names (#716) 2024-02-04 16:20:08 +01:00
test_plug.py Various test code cleanups (#725) 2024-01-29 20:26:39 +01:00
test_protocol.py Unignore F401 for tests (#724) 2024-01-30 00:15:58 +01:00
test_readme_examples.py Refactor devices into subpackages and deprecate old names (#716) 2024-02-04 16:20:08 +01:00
test_smartdevice.py Add generic interface for accessing device features (#741) 2024-02-15 16:25:08 +01:00
test_smartprotocol.py Unignore F401 for tests (#724) 2024-01-30 00:15:58 +01:00
test_strip.py Refactor devices into subpackages and deprecate old names (#716) 2024-02-04 16:20:08 +01:00
test_usage.py Refactor devices into subpackages and deprecate old names (#716) 2024-02-04 16:20:08 +01:00