mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 08:17:08 +00:00
small fix for random effect in order to use the whole rgb range. So 255 is not excluded anymore. (#7156)
This commit is contained in:
parent
9c0171ec5e
commit
43799b8fee
@ -216,9 +216,9 @@ class FluxLight(Light):
|
||||
(red, green, blue) = self._bulb.getRgb()
|
||||
self._bulb.setRgb(red, green, blue, brightness=brightness)
|
||||
elif effect == EFFECT_RANDOM:
|
||||
self._bulb.setRgb(random.randrange(0, 255),
|
||||
random.randrange(0, 255),
|
||||
random.randrange(0, 255))
|
||||
self._bulb.setRgb(random.randint(0, 255),
|
||||
random.randint(0, 255),
|
||||
random.randint(0, 255))
|
||||
elif effect == EFFECT_COLORLOOP:
|
||||
self._bulb.setPresetPattern(0x25, 50)
|
||||
elif effect == EFFECT_RED_FADE:
|
||||
|
Loading…
x
Reference in New Issue
Block a user