mirror of
https://github.com/natekspencer/hacs-oasis_mini.git
synced 2025-11-14 08:03:52 -05:00
Updates
This commit is contained in:
@@ -44,15 +44,14 @@ class OasisMiniLightEntity(OasisMiniEntity, LightEntity):
|
||||
@property
|
||||
def color_mode(self) -> ColorMode:
|
||||
"""Return the color mode of the light."""
|
||||
# if self.effect in (
|
||||
# "Rainbow",
|
||||
# "Glitter",
|
||||
# "Confetti",
|
||||
# "BPM",
|
||||
# "Juggle",
|
||||
# "Theater",
|
||||
# ):
|
||||
# return ColorMode.BRIGHTNESS
|
||||
if self.effect in (
|
||||
"Rainbow",
|
||||
"Glitter",
|
||||
"Confetti",
|
||||
"BPM",
|
||||
"Juggle",
|
||||
):
|
||||
return ColorMode.BRIGHTNESS
|
||||
return ColorMode.RGB
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user