KeyError: '-1008' is raised when setting only either the hue or saturation in the setColor() function for L530 bulbs · Issue #110 · fishbigger/TapoP100 · GitHub
More Web Proxy on the site http://driver.im/
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:
Uh oh!
There was an error while loading. Please reload this page.
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: