api/common/ColorLight: drop hsv function

The on() method takes a color type, which is an HSV color, so a separate hsv method is not needed.

hub.light.on(Color.GREEN)
hub.light.on(Color(120))
hub.light.on(Color(h=120, s=100, 50))
This commit is contained in:
Laurens Valk
2020-08-25 13:38:09 +02:00
parent 0427436df6
commit b974ead0dc
+1 -12
View File
@@ -442,8 +442,7 @@ class ColorLight:
"""Turns on the light at the specified color.
Arguments:
color (Color): Color of the light. The light turns off if you
choose ``None`` or a color that is not available.
color (Color): Color of the light.
"""
pass
@@ -451,16 +450,6 @@ class ColorLight:
"""Turns off the light."""
pass
def hsv(self, hue, saturation=100, value=100):
"""Sets the hue, saturation and brightness of the light.
Arguments:
hue (:ref:`hue`): Hue of the color.
saturation (:ref:`percentage`): Saturation of the color.
value (:ref:`percentage`): Brightness value of the color.
"""
pass
def pattern(self, pattern, duration):
"""Makes the light follow a color pattern as a function of time.