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.
@@ -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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Homebridge Kasa Python",
3
3
  "name": "homebridge-kasa-python",
4
- "version": "2.8.0-beta.1",
4
+ "version": "2.8.0-beta.2",
5
5
  "description": "Plugin that uses Python-Kasa API to communicate with Kasa Devices.",
6
6
  "license": "MIT",
7
7
  "type": "module",