python-kasa/kasa/smart
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
..
modules Fix set_state for common light modules (#929) 2024-05-22 15:33:55 +02:00
__init__.py Move SmartBulb into SmartDevice (#874) 2024-04-29 18:19:44 +01:00
effects.py Add LightEffect module for smart light strips (#918) 2024-05-15 06:16:57 +01:00
smartchilddevice.py Add post update hook to module and use in smart LightEffect (#921) 2024-05-19 10:18:17 +01:00
smartdevice.py Add light presets common module to devices. (#907) 2024-05-19 11:20:18 +01:00
smartmodule.py Add support for contact sensor (T110) (#877) 2024-05-07 20:58:18 +02:00