homebridge-kasa-python 2.8.0-beta.1 → 2.8.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/python/kasaApi.py +2 -0
- package/package.json +1 -1
package/dist/python/kasaApi.py
CHANGED
|
@@ -330,6 +330,8 @@ async def handle_hsv(target: Device, action: str, feature: str, value: Dict[str,
|
|
|
330
330
|
log(f"Handling HSV: action={action}, feature={feature}, value={value}", alias=target.alias)
|
|
331
331
|
light = target.modules.get(Module.Light)
|
|
332
332
|
hsv = list(light.hsv)
|
|
333
|
+
if not isinstance(value, dict):
|
|
334
|
+
value = {feature: value}
|
|
333
335
|
if feature == "hue":
|
|
334
336
|
hsv[0] = value["hue"]
|
|
335
337
|
elif feature == "saturation":
|
package/package.json
CHANGED