Fix ikea lights on deconz (#28949)
* Fix ikea lights on deconz * check for None * Use cleaner code stylepull/28956/head
parent
9a23a1c336
commit
051e37eb49
|
@ -152,6 +152,8 @@ class DeconzLight(DeconzDevice, Light):
|
|||
|
||||
if ATTR_TRANSITION in kwargs:
|
||||
data["transitiontime"] = int(kwargs[ATTR_TRANSITION] * 10)
|
||||
elif "IKEA" in (self._device.manufacturer or ""):
|
||||
data["transitiontime"] = 0
|
||||
|
||||
if ATTR_FLASH in kwargs:
|
||||
if kwargs[ATTR_FLASH] == FLASH_SHORT:
|
||||
|
|
Loading…
Reference in New Issue