python-kasa/kasa
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
..
cli Structure cli into a package (#1038) 2024-07-04 14:52:01 +02:00
interfaces Require explicit feature type (#1006) 2024-06-25 18:30:36 +02:00
iot Support child devices in all applicable cli commands (#1020) 2024-07-02 15:11:19 +02:00
smart Fix light preset module when list contains lighting effects (#1048) 2024-07-04 17:22:47 +02:00
tests Fix light preset module when list contains lighting effects (#1048) 2024-07-04 17:22:47 +02:00
__init__.py Make device initialisation easier by reducing required imports (#936) 2024-06-03 19:06:54 +01:00
aestransport.py Fix credential hash to return None on empty credentials (#1029) 2024-07-02 13:43:37 +01:00
credentials.py Cleanup credentials handling (#605) 2024-01-03 19:26:52 +01:00
device_factory.py Move SmartBulb into SmartDevice (#874) 2024-04-29 18:19:44 +01:00
device_type.py Add temperature control module for smart (#848) 2024-04-22 12:39:07 +01:00
device.py Support child devices in all applicable cli commands (#1020) 2024-07-02 15:11:19 +02:00
deviceconfig.py Make device initialisation easier by reducing required imports (#936) 2024-06-03 19:06:54 +01:00
discover.py Drop python3.8 support (#992) 2024-06-19 20:24:12 +02:00
emeterstatus.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00
exceptions.py Cache SmartErrorCode creation (#1022) 2024-06-30 10:49:59 +01:00
feature.py Update light transition module to work with child devices (#1017) 2024-06-27 18:52:54 +01:00
httpclient.py Configure mypy to run in virtual environment and fix resulting issues (#989) 2024-06-19 15:07:59 +02:00
iotprotocol.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00
json.py Generate AES KeyPair lazily (#687) 2024-01-23 15:29:27 +00:00
klaptransport.py Fix credential hash to return None on empty credentials (#1029) 2024-07-02 13:43:37 +01:00
module.py Fix changing brightness when effect is active (#1019) 2024-07-01 13:59:24 +02:00
modulemapping.py Create common interfaces for remaining device types (#895) 2024-05-10 19:29:28 +01:00
modulemapping.pyi Create common interfaces for remaining device types (#895) 2024-05-10 19:29:28 +01:00
protocol.py Fix credential hash to return None on empty credentials (#1029) 2024-07-02 13:43:37 +01:00
py.typed Add py.typed to flag that the package is typed (#251) 2021-11-15 18:21:24 +01:00
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
xortransport.py Fix credential hash to return None on empty credentials (#1029) 2024-07-02 13:43:37 +01:00