You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: