[imperihome] Adapt call to ZDT in Persistence API (#8527)
Fixes #8290 Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
parent
2e4b1beb7f
commit
5297ac2524
@ -110,7 +110,7 @@ public class DeviceHistoryHandler {
|
|||||||
State state = historicItem.getState();
|
State state = historicItem.getState();
|
||||||
if (state instanceof DecimalType) {
|
if (state instanceof DecimalType) {
|
||||||
Number value = ((DecimalType) state).toBigDecimal();
|
Number value = ((DecimalType) state).toBigDecimal();
|
||||||
resultItems.add(new HistoryItem(historicItem.getTimestamp(), value));
|
resultItems.add(new HistoryItem(historicItem.getTimestamp().toInstant().toEpochMilli(), value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -19,6 +19,7 @@
|
|||||||
<modules>
|
<modules>
|
||||||
<!-- io -->
|
<!-- io -->
|
||||||
<module>org.openhab.io.homekit</module>
|
<module>org.openhab.io.homekit</module>
|
||||||
|
<module>org.openhab.io.imperihome</module>
|
||||||
<module>org.openhab.io.neeo</module>
|
<module>org.openhab.io.neeo</module>
|
||||||
<module>org.openhab.io.openhabcloud</module>
|
<module>org.openhab.io.openhabcloud</module>
|
||||||
<module>org.openhab.io.transport.modbus</module>
|
<module>org.openhab.io.transport.modbus</module>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user