mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-18 05:18:02 +00:00
Migrate Light module to feature based capability checks
This commit is contained in:
@@ -52,9 +52,9 @@ True
|
||||
>>> await dev.update()
|
||||
>>> light.brightness
|
||||
50
|
||||
>>> light.is_color
|
||||
>>> light.has_feature(light.set_hsv)
|
||||
True
|
||||
>>> if light.is_color:
|
||||
>>> if light.has_feature(light.set_hsv):
|
||||
>>> print(light.hsv)
|
||||
HSV(hue=0, saturation=100, value=50)
|
||||
|
||||
|
Reference in New Issue
Block a user