deCONZ - Allow sub second light transitions (#16170)

Solves https://github.com/home-assistant/home-assistant/issues/16075
pull/16172/merge
Robert Svensson 2018-08-24 16:15:28 +02:00 committed by Paulus Schoutsen
parent 5e301dd599
commit 37fd438717
1 changed files with 2 additions and 2 deletions

View File

@ -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: