Commit cb250d9
committed
Fix PersistenceThresholdFilter UoM conversion
Use `toUnitRelative()` instead of `toUnit()` for delta (the difference
of old and current state). In particular for temperatures an offset
of different units (like °C and K) should be ignored when considering
the delta.
Signed-off-by: Christoph Gehrke <cgdev@duck.com>1 parent 3317825 commit cb250d9
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- bundles/org.openhab.core.persistence/src/main/java/org/openhab/core/persistence/filter
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
0 commit comments