Fix ikea lights on deconz (#28949)

* Fix ikea lights on deconz

* check for None

* Use cleaner code style
pull/28956/head
Pascal Vizeli 2019-11-22 15:32:05 +01:00 committed by GitHub
parent 9a23a1c336
commit 051e37eb49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

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