From 6b7c8006a60e4d75706f033bae562b6c804d5bcd Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 13 Aug 2022 16:55:47 +0200 Subject: fix NoneType error --- light.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/light.py b/light.py index 2dc96bf..e195ad7 100644 --- a/light.py +++ b/light.py @@ -92,7 +92,7 @@ class BekenLight(LightEntity): transition = kwargs.get(ATTR_TRANSITION) if transition != None: - self.interpolate(brightness_old if on_old else 0, brightness, rgb_old if on_old else (0, 0, 0,), rgbw[0:3], w_old if on_old else 0, rgbw[3], transition) + self.interpolate(brightness_old if on_old else 0, self._brightness, rgb_old if on_old else (0, 0, 0,), self._rgb, w_old if on_old else 0, self._w, transition) self.update_beken_lamp() -- cgit v1.2.3