File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 44
55setup (
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." ,
You can’t perform that action at this time.
0 commit comments