mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Replace comments with docstring in ColorMode enum (#90408)
This commit is contained in:
parent
02e2e4d039
commit
bdf29b594f
@ -68,16 +68,20 @@ ATTR_SUPPORTED_COLOR_MODES = "supported_color_modes"
|
|||||||
class ColorMode(StrEnum):
|
class ColorMode(StrEnum):
|
||||||
"""Possible light color modes."""
|
"""Possible light color modes."""
|
||||||
|
|
||||||
UNKNOWN = "unknown" # Ambiguous color mode
|
UNKNOWN = "unknown"
|
||||||
ONOFF = "onoff" # Must be the only supported mode
|
"""Ambiguous color mode"""
|
||||||
BRIGHTNESS = "brightness" # Must be the only supported mode
|
ONOFF = "onoff"
|
||||||
|
"""Must be the only supported mode"""
|
||||||
|
BRIGHTNESS = "brightness"
|
||||||
|
"""Must be the only supported mode"""
|
||||||
COLOR_TEMP = "color_temp"
|
COLOR_TEMP = "color_temp"
|
||||||
HS = "hs"
|
HS = "hs"
|
||||||
XY = "xy"
|
XY = "xy"
|
||||||
RGB = "rgb"
|
RGB = "rgb"
|
||||||
RGBW = "rgbw"
|
RGBW = "rgbw"
|
||||||
RGBWW = "rgbww"
|
RGBWW = "rgbww"
|
||||||
WHITE = "white" # Must *NOT* be the only supported mode
|
WHITE = "white"
|
||||||
|
"""Must *NOT* be the only supported mode"""
|
||||||
|
|
||||||
|
|
||||||
# These COLOR_MODE_* constants are deprecated as of Home Assistant 2022.5.
|
# These COLOR_MODE_* constants are deprecated as of Home Assistant 2022.5.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user