mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Remove Hue transition time limit
This commit is contained in:
parent
28bbf39155
commit
0555294afe
@ -206,9 +206,7 @@ class HueLight(Light):
|
|||||||
command = {'on': True}
|
command = {'on': True}
|
||||||
|
|
||||||
if ATTR_TRANSITION in kwargs:
|
if ATTR_TRANSITION in kwargs:
|
||||||
# Transition time is in 1/10th seconds and cannot exceed
|
command['transitiontime'] = kwargs[ATTR_TRANSITION] * 10
|
||||||
# 900 seconds.
|
|
||||||
command['transitiontime'] = min(9000, kwargs[ATTR_TRANSITION] * 10)
|
|
||||||
|
|
||||||
if ATTR_BRIGHTNESS in kwargs:
|
if ATTR_BRIGHTNESS in kwargs:
|
||||||
command['bri'] = kwargs[ATTR_BRIGHTNESS]
|
command['bri'] = kwargs[ATTR_BRIGHTNESS]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user