When setting only one of the hue or saturation for the Tapo L530 bulb, the setColor() function throws a KeyError: '-1008' error. It would be useful if the function could accept setting only the hue or saturation, as there may be a scenario where the hue is already set and the user only wants to modify the saturation.
Perhaps some code similar to the following could be added to the setColor() function:
Payload = {
"method": "set_device_info",
"params":{}
}
if hue is not None:
Payload["params"]["hue"] = hue
if saturation is not None:
Payload["params"]["saturation"] = saturation
When setting only one of the hue or saturation for the Tapo L530 bulb, the setColor() function throws a KeyError: '-1008' error. It would be useful if the function could accept setting only the hue or saturation, as there may be a scenario where the hue is already set and the user only wants to modify the saturation.
Perhaps some code similar to the following could be added to the setColor() function: