From 051e37eb49f4f48b4b6cf8b8a882346b6cde49d0 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: