From 2c264826efdd7a5cbf374e147bb2cf8b82c31fff Mon Sep 17 00:00:00 2001 From: trilu2000 Date: Tue, 9 Apr 2019 13:25:32 +0200 Subject: [PATCH] Revert "Update light.py" This reverts commit f5565a006d769c4f392390e405b48f12acba177e. --- homeassistant/components/homematic/light.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/homematic/light.py b/homeassistant/components/homematic/light.py index d7f74b5f838..41b8165d78e 100644 --- a/homeassistant/components/homematic/light.py +++ b/homeassistant/components/homematic/light.py @@ -79,7 +79,7 @@ class HMLight(HMDevice, Light): """Turn the light on and/or change color or color effect settings.""" if ATTR_TRANSITION in kwargs: self._hmdevice.setValue('RAMP_TIME', kwargs[ATTR_TRANSITION]) - + if ATTR_BRIGHTNESS in kwargs and self._state == "LEVEL": percent_bright = float(kwargs[ATTR_BRIGHTNESS]) / 255 self._hmdevice.set_level(percent_bright, self._channel)