deCONZ - Allow sub second light transitions (#16170)
Solves https://github.com/home-assistant/home-assistant/issues/16075pull/16172/merge
parent
5e301dd599
commit
37fd438717
|
@ -155,7 +155,7 @@ class DeconzLight(Light):
|
||||||
data['bri'] = kwargs[ATTR_BRIGHTNESS]
|
data['bri'] = kwargs[ATTR_BRIGHTNESS]
|
||||||
|
|
||||||
if ATTR_TRANSITION in kwargs:
|
if ATTR_TRANSITION in kwargs:
|
||||||
data['transitiontime'] = int(kwargs[ATTR_TRANSITION]) * 10
|
data['transitiontime'] = int(kwargs[ATTR_TRANSITION] * 10)
|
||||||
|
|
||||||
if ATTR_FLASH in kwargs:
|
if ATTR_FLASH in kwargs:
|
||||||
if kwargs[ATTR_FLASH] == FLASH_SHORT:
|
if kwargs[ATTR_FLASH] == FLASH_SHORT:
|
||||||
|
@ -179,7 +179,7 @@ class DeconzLight(Light):
|
||||||
|
|
||||||
if ATTR_TRANSITION in kwargs:
|
if ATTR_TRANSITION in kwargs:
|
||||||
data['bri'] = 0
|
data['bri'] = 0
|
||||||
data['transitiontime'] = int(kwargs[ATTR_TRANSITION]) * 10
|
data['transitiontime'] = int(kwargs[ATTR_TRANSITION] * 10)
|
||||||
|
|
||||||
if ATTR_FLASH in kwargs:
|
if ATTR_FLASH in kwargs:
|
||||||
if kwargs[ATTR_FLASH] == FLASH_SHORT:
|
if kwargs[ATTR_FLASH] == FLASH_SHORT:
|
||||||
|
|
Loading…
Reference in New Issue