diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-08-13 16:55:47 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-08-13 16:55:47 +0200 |
commit | 6b7c8006a60e4d75706f033bae562b6c804d5bcd (patch) | |
tree | 5de10dbbc1b886ba93a0410b793e30fbe1610a1c | |
parent | f578e77a380a426073cc64ae82374b3a17eac2d1 (diff) |
fix NoneType error
-rw-r--r-- | light.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() |