python-kasa/kasa/smart
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
..
modules Fix changing brightness when effect is active (#1019) 2024-07-01 13:59:24 +02:00
__init__.py Move SmartBulb into SmartDevice (#874) 2024-04-29 18:19:44 +01:00
effects.py Fix changing brightness when effect is active (#1019) 2024-07-01 13:59:24 +02:00
smartchilddevice.py Support smart child modules queries (#967) 2024-06-10 16:47:00 +02:00
smartdevice.py Require explicit feature type (#1006) 2024-06-25 18:30:36 +02:00
smartmodule.py Add support for contact sensor (T110) (#877) 2024-05-07 20:58:18 +02:00