diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-08-13 16:55:08 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-08-13 16:55:08 +0200 |
commit | c0ce59eff43d0c5f53c0af484d2b7d172669a4e6 (patch) | |
tree | 96f3fac759f65b52bd32c2cfe3ee250b6cd4b48f | |
parent | da9a3f0891a3665cea0d8480a4be8ebc2eda453e (diff) |
fix NoneType error
-rw-r--r-- | light.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -83,7 +83,7 @@ class ESPLedStripLight(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,), rgb, transition) + self.interpolate(brightness_old if on_old else 0, self._brightness, rgb_old if on_old else (0, 0, 0,), self._rgb, transition) self.update_espled() |