python-kasa/kasa/tests
Steven B 7888f4904a
Fix light preset module when list contains lighting effects (#1048)
Fixes the residual issues with the light preset module not handling
unexpected `lighting_effect` items in the presets list.

Completes the fixes started with PR
https://github.com/python-kasa/python-kasa/pull/1043 to fix
https://github.com/python-kasa/python-kasa/issues/1040, [HA
#121115](https://github.com/home-assistant/core/issues/121115) and [HA
#121119](https://github.com/home-assistant/core/issues/121119)

With this PR affected devices will no longer have the light preset
functionality disabled. As this is a new feature this does not warrant a
hotfix so will go into the next release.

Updated fixture for testing thanks to @szssamuel, many thanks!
2024-07-04 17:22:47 +02:00
..
fixtures Fix light preset module when list contains lighting effects (#1048) 2024-07-04 17:22:47 +02:00
smart Fix changing brightness when effect is active (#1019) 2024-07-01 13:59:24 +02:00
__init__.py mass rename to (python-)kasa (#1) 2019-12-18 09:11:18 +01:00
conftest.py Fix potential infinite loop if incomplete lists returned (#920) 2024-05-19 10:34:52 +01:00
device_fixtures.py Update light transition module to work with child devices (#1017) 2024-06-27 18:52:54 +01:00
discovery_fixtures.py Update light transition module to work with child devices (#1017) 2024-06-27 18:52:54 +01:00
fakeprotocol_iot.py Fix credential hash to return None on empty credentials (#1029) 2024-07-02 13:43:37 +01:00
fakeprotocol_smart.py Fix changing brightness when effect is active (#1019) 2024-07-01 13:59:24 +02:00
fixtureinfo.py Update light transition module to work with child devices (#1017) 2024-06-27 18:52:54 +01:00
test_aestransport.py Handle unknown error codes gracefully (#1016) 2024-06-27 16:58:45 +02:00
test_bulb.py Add some device fixtures (#948) 2024-06-04 19:24:53 +02:00
test_childdevice.py Make parent attribute on device consistent across iot and smart (#1023) 2024-07-01 11:51:06 +01:00
test_cli.py Structure cli into a package (#1038) 2024-07-04 14:52:01 +02:00
test_common_modules.py Fix changing brightness when effect is active (#1019) 2024-07-01 13:59:24 +02:00
test_device_factory.py Update light transition module to work with child devices (#1017) 2024-06-27 18:52:54 +01:00
test_device_type.py Refactor devices into subpackages and deprecate old names (#716) 2024-02-04 16:20:08 +01:00
test_device.py Configure mypy to run in virtual environment and fix resulting issues (#989) 2024-06-19 15:07:59 +02:00
test_deviceconfig.py Rename and deprecate exception classes (#739) 2024-02-21 16:52:55 +01:00
test_dimmer.py Fix set_state for common light modules (#929) 2024-05-22 15:33:55 +02:00
test_discovery.py Make device initialisation easier by reducing required imports (#936) 2024-06-03 19:06:54 +01:00
test_emeter.py Configure mypy to run in virtual environment and fix resulting issues (#989) 2024-06-19 15:07:59 +02:00
test_feature.py Require explicit feature type (#1006) 2024-06-25 18:30:36 +02:00
test_httpclient.py Configure mypy to run in virtual environment and fix resulting issues (#989) 2024-06-19 15:07:59 +02:00
test_iotdevice.py Drop python3.8 support (#992) 2024-06-19 20:24:12 +02:00
test_klapprotocol.py Retry query on 403 after succesful handshake (#785) 2024-02-22 18:02:03 +01:00
test_lightstrip.py Make Light and Fan a common module interface (#911) 2024-05-13 17:34:44 +01:00
test_plug.py Refactor split smartdevice tests to test_{iot,smart}device (#822) 2024-03-15 15:55:48 +00:00
test_protocol.py Fix credential hash to return None on empty credentials (#1029) 2024-07-02 13:43:37 +01:00
test_readme_examples.py Update docs with more howto examples (#968) 2024-06-19 09:53:40 +01:00
test_smartdevice.py Handle module errors more robustly and add query params to light preset and transition (#1036) 2024-07-04 08:02:50 +01:00
test_smartprotocol.py Handle module errors more robustly and add query params to light preset and transition (#1036) 2024-07-04 08:02:50 +01:00
test_strip.py Fix post update hook for iot child devices (#1011) 2024-06-25 17:58:07 +00:00
test_usage.py Refactor devices into subpackages and deprecate old names (#716) 2024-02-04 16:20:08 +01:00