Skip to content

Commit 162533e

Browse files
committed
Regression from beta 26: ramp increments
1 parent 0ca89d7 commit 162533e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

inelsmqtt/devices/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def set_ha_value(self, value: Any) -> bool:
317317
# This is a workaround to the last value before turn off since ramp increments are built into mqtt events
318318
if hasattr(value, 'light_coa_toa'):
319319
_values = self.__values
320-
for i in range(6):
320+
for i in range(len(_values.ha_value.light_coa_toa)):
321321
_values.ha_value.light_coa_toa[i].brightness_before_off = value.light_coa_toa[i].brightness_before_off
322322
self.__values = _values
323323

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(
66
name="elkoep-mqtt",
7-
version="0.2.33.beta.26",
7+
version="0.2.33.beta.27",
88
url="https://github.com/epdevlab/elkoep-mqtt",
99
license="MIT",
1010
author="Elko EP s.r.o.",

0 commit comments

Comments
 (0)