Increase upper limit on light transitions (#2843)
This increases the global limit to 6535 seconds (1h48m55s) because that is supported by all light platforms. Some platforms support even longer transition times so the limit should actually be platform specific.
This commit is contained in:
parent
629b2e81ba
commit
b9cf4df557
2 changed files with 2 additions and 7 deletions
|
@ -436,12 +436,7 @@ class HueLight(Light):
|
|||
command = {'on': False}
|
||||
|
||||
if ATTR_TRANSITION in kwargs:
|
||||
# Transition time is in 1/10th seconds and cannot exceed
|
||||
# 900 seconds.
|
||||
command['transitiontime'] = min(
|
||||
9000,
|
||||
int(kwargs[ATTR_TRANSITION] * 10)
|
||||
)
|
||||
command['transitiontime'] = int(kwargs[ATTR_TRANSITION] * 10)
|
||||
|
||||
flash = kwargs.get(ATTR_FLASH)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue