Commit bdfb271
authored
Fix repeater range step and stop (openhab#3440)
Fixes two small issues when using the `sourceType: range` of oh-repeater.
1) step values less than one or with decimal components improperly
calculate number of elements in the final array (go beyond stop value to
next whole number).
2) stop value cannot be set to 0 (falsy value results in default value
of 10 for stop).
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>1 parent b11d06d commit bdfb271
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
0 commit comments