python-kasa/kasa/iot/modules
Steven B db6e335346
Fix set_state for common light modules (#929)
PR contains a number of fixes from testing with HA devices:

- Fixes a bug with turning the light on and off via `set_state`
- Aligns `set_brightness` behaviour across `smart` and `iot` devices
such that a value of 0 is off.
- Aligns `set_brightness` behaviour for `IotDimmer` such that setting
the brightness turns on the device with a transition of 1ms. ([HA
comment](https://github.com/home-assistant/core/pull/117839#discussion_r1608720006))
- Fixes a typing issue in `LightState`.
- Adds `ColorTempRange` and `HSV` to `__init__.py`
- Adds a `state` property to the interface returning `LightState` for
validating `set_state` changes.
- Adds tests for `set_state`
2024-05-22 15:33:55 +02:00
..
__init__.py Add light presets common module to devices. (#907) 2024-05-19 11:20:18 +01:00
ambientlight.py Improve categorization of features (#904) 2024-05-07 10:13:35 +01:00
antitheft.py Update poetry locks and pre-commit hooks (#837) 2024-04-16 20:21:20 +02:00
cloud.py Improve categorization of features (#904) 2024-05-07 10:13:35 +01:00
countdown.py Update poetry locks and pre-commit hooks (#837) 2024-04-16 20:21:20 +02:00
emeter.py Improve categorization of features (#904) 2024-05-07 10:13:35 +01:00
led.py Make module names consistent and remove redundant module casting (#909) 2024-05-11 19:28:18 +01:00
light.py Fix set_state for common light modules (#929) 2024-05-22 15:33:55 +02:00
lighteffect.py Deprecate device level light, effect and led attributes (#916) 2024-05-15 18:49:08 +01:00
lightpreset.py Add light presets common module to devices. (#907) 2024-05-19 11:20:18 +01:00
motion.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00
rulemodule.py Use pydantic.v1 namespace on all pydantic versions (#883) 2024-05-01 15:59:35 +02:00
schedule.py Update poetry locks and pre-commit hooks (#837) 2024-04-16 20:21:20 +02:00
time.py Update poetry locks and pre-commit hooks (#837) 2024-04-16 20:21:20 +02:00
usage.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00