python-kasa/kasa/iot
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 Update poetry locks and pre-commit hooks (#837) 2024-04-16 20:21:20 +02:00
effects.py Create common interfaces for remaining device types (#895) 2024-05-10 19:29:28 +01:00
iotbulb.py Fix set_state for common light modules (#929) 2024-05-22 15:33:55 +02:00
iotdevice.py Add light presets common module to devices. (#907) 2024-05-19 11:20:18 +01:00
iotdimmer.py Fix set_state for common light modules (#929) 2024-05-22 15:33:55 +02:00
iotlightstrip.py Deprecate device level light, effect and led attributes (#916) 2024-05-15 18:49:08 +01:00
iotmodule.py Create common interfaces for remaining device types (#895) 2024-05-10 19:29:28 +01:00
iotplug.py Add tutorial doctest module and enable top level await (#919) 2024-05-16 18:13:44 +02:00
iotstrip.py Add tutorial doctest module and enable top level await (#919) 2024-05-16 18:13:44 +02:00