python-kasa/kasa/tests/smart/modules
Teemu R b31a2ede7f
Fix changing brightness when effect is active (#1019)
This PR changes the behavior of `brightness` module if an effect is
active.
Currently, changing the brightness disables the effect when the
brightness is changed, this fixes that.
This will also improve the `set_effect` interface to use the current
brightness when an effect is activated.

* light_strip_effect: passing `bAdjusted` with the changed properties
changes the brightness.
* light_effect: the brightness is stored only in the rule, so we modify
it when adjusting the brightness. This is also done during the initial
effect activation.

---------

Co-authored-by: Steven B <51370195+sdb9696@users.noreply.github.com>
2024-07-01 13:59:24 +02:00
..
__init__.py Add T315 fixture, tests for humidity&temperature modules (#802) 2024-03-06 18:04:09 +00:00
test_autooff.py Support smart child modules queries (#967) 2024-06-10 16:47:00 +02:00
test_contact.py Make Light and Fan a common module interface (#911) 2024-05-13 17:34:44 +01:00
test_fan.py Do not expose child modules on parent devices (#964) 2024-06-10 05:59:37 +01:00
test_firmware.py Configure mypy to run in virtual environment and fix resulting issues (#989) 2024-06-19 15:07:59 +02:00
test_humidity.py Make Light and Fan a common module interface (#911) 2024-05-13 17:34:44 +01:00
test_light_effect.py Fix changing brightness when effect is active (#1019) 2024-07-01 13:59:24 +02:00
test_light_strip_effect.py Fix changing brightness when effect is active (#1019) 2024-07-01 13:59:24 +02:00
test_lighttransition.py Update light transition module to work with child devices (#1017) 2024-06-27 18:52:54 +01:00
test_temperature.py Make Light and Fan a common module interface (#911) 2024-05-13 17:34:44 +01:00
test_temperaturecontrol.py Make Light and Fan a common module interface (#911) 2024-05-13 17:34:44 +01:00
test_waterleak.py Make Light and Fan a common module interface (#911) 2024-05-13 17:34:44 +01:00