From f3b9e1e988db13b377332eb39a37d7b27064c7ca Mon Sep 17 00:00:00 2001 From: Riccardo Canta Date: Wed, 17 May 2017 23:26:58 +0200 Subject: [PATCH] Osram lightify Removed wrong assignment (#7615) self._brightness is assigned with the returned value of the set_luminance() function, which is always equal to None. --- homeassistant/components/light/osramlightify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/light/osramlightify.py b/homeassistant/components/light/osramlightify.py index 143dc52cbee..bc0cfacda1a 100644 --- a/homeassistant/components/light/osramlightify.py +++ b/homeassistant/components/light/osramlightify.py @@ -195,7 +195,7 @@ class Luminary(Light): self._brightness = kwargs[ATTR_BRIGHTNESS] _LOGGER.debug("turn_on requested brightness for light: %s is: %s ", self._name, self._brightness) - self._brightness = self._luminary.set_luminance( + self._luminary.set_luminance( int(self._brightness / 2.55), transition)