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!
This commit is contained in:
Steven B
2024-07-04 16:22:47 +01:00
committed by GitHub
parent 983aacbc24
commit 7888f4904a
2 changed files with 777 additions and 117 deletions

File diff suppressed because it is too large Load Diff