From 2e85e3662f06c22324bc28d35bae9b2f25a751ef Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Fri, 22 Nov 2019 15:32:05 +0100 Subject: [PATCH] Fix ikea lights on deconz (#28949) * Fix ikea lights on deconz * check for None * Use cleaner code style --- homeassistant/components/deconz/light.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/deconz/light.py b/homeassistant/components/deconz/light.py index bf4b05089a8..eda2041b923 100644 --- a/homeassistant/components/deconz/light.py +++ b/homeassistant/components/deconz/light.py @@ -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: