aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-08-13 16:55:47 +0200
committerlonkaars <loek@pipeframe.xyz>2022-08-13 16:55:47 +0200
commit6b7c8006a60e4d75706f033bae562b6c804d5bcd (patch)
tree5de10dbbc1b886ba93a0410b793e30fbe1610a1c
parentf578e77a380a426073cc64ae82374b3a17eac2d1 (diff)
fix NoneType error
-rw-r--r--light.py2
1 files changed, 1 insertions, 1 deletions
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()