mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-12-11 02:28:21 +00:00
Add rest api command to the cli
This commit is contained in:
@@ -96,6 +96,10 @@ class HSV(NamedTuple):
|
||||
saturation: int
|
||||
value: int
|
||||
|
||||
def to_dict(self) -> dict:
|
||||
"""Return dict represenation."""
|
||||
return {"hue": self.hue, "saturation": self.saturation, "value": self.value}
|
||||
|
||||
|
||||
class Light(Module, ABC):
|
||||
"""Base class for TP-Link Light."""
|
||||
|
||||
Reference in New Issue
Block a user