python-kasa/kasa/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 Fix changing brightness when effect is active (#1019) 2024-07-01 13:59:24 +02:00
alarm.py Require explicit feature type (#1006) 2024-06-25 18:30:36 +02:00
autooff.py Require explicit feature type (#1006) 2024-06-25 18:30:36 +02:00
batterysensor.py Make module names consistent and remove redundant module casting (#909) 2024-05-11 19:28:18 +01:00
brightness.py Fix changing brightness when effect is active (#1019) 2024-07-01 13:59:24 +02:00
childdevice.py Update docs with more howto examples (#968) 2024-06-19 09:53:40 +01:00
cloud.py Make module names consistent and remove redundant module casting (#909) 2024-05-11 19:28:18 +01:00
color.py Rename bulb interface to light and move fan and light interface to interfaces (#910) 2024-05-11 19:40:08 +01:00
colortemperature.py Rename bulb interface to light and move fan and light interface to interfaces (#910) 2024-05-11 19:40:08 +01:00
contactsensor.py Make module names consistent and remove redundant module casting (#909) 2024-05-11 19:28:18 +01:00
devicemodule.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00
energy.py Add common energy module and deprecate device emeter attributes (#976) 2024-06-17 11:22:05 +01:00
fan.py Fix fan speed level when off and derive smart fan module from common fan interface (#957) 2024-06-06 15:18:34 +02:00
firmware.py Require explicit feature type (#1006) 2024-06-25 18:30:36 +02:00
frostprotection.py Remove frost_protection feature (#1009) 2024-06-25 20:00:39 +02:00
humiditysensor.py Require explicit feature type (#1006) 2024-06-25 18:30:36 +02:00
led.py Fix smart led status to report rule status (#1002) 2024-06-23 07:22:29 +01:00
light.py Fix set_state for common light modules (#929) 2024-05-22 15:33:55 +02:00
lighteffect.py Fix changing brightness when effect is active (#1019) 2024-07-01 13:59:24 +02:00
lightpreset.py Drop python3.8 support (#992) 2024-06-19 20:24:12 +02:00
lightstripeffect.py Fix changing brightness when effect is active (#1019) 2024-07-01 13:59:24 +02:00
lighttransition.py Update light transition module to work with child devices (#1017) 2024-06-27 18:52:54 +01:00
reportmode.py Require explicit feature type (#1006) 2024-06-25 18:30:36 +02:00
temperaturecontrol.py Require explicit feature type (#1006) 2024-06-25 18:30:36 +02:00
temperaturesensor.py Require explicit feature type (#1006) 2024-06-25 18:30:36 +02:00
time.py Require explicit feature type (#1006) 2024-06-25 18:30:36 +02:00
waterleaksensor.py Require explicit feature type (#1006) 2024-06-25 18:30:36 +02:00