mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
db6e335346
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` |
||
---|---|---|
.. | ||
interfaces | ||
iot | ||
smart | ||
tests | ||
__init__.py | ||
aestransport.py | ||
cli.py | ||
credentials.py | ||
device_factory.py | ||
device_type.py | ||
device.py | ||
deviceconfig.py | ||
discover.py | ||
emeterstatus.py | ||
exceptions.py | ||
feature.py | ||
httpclient.py | ||
iotprotocol.py | ||
json.py | ||
klaptransport.py | ||
module.py | ||
modulemapping.py | ||
modulemapping.pyi | ||
protocol.py | ||
py.typed | ||
smartprotocol.py | ||
xortransport.py |