mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
Simplify DateTimeType handling for Digiplex/EVO
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
9c3b40a9bc
commit
a813e41185
@ -15,7 +15,7 @@ package org.openhab.binding.digiplex.internal.handler;
|
||||
import static org.openhab.binding.digiplex.internal.DigiplexBindingConstants.*;
|
||||
import static org.openhab.binding.digiplex.internal.handler.TypeUtils.openClosedFromBoolean;
|
||||
|
||||
import java.time.ZonedDateTime;
|
||||
import java.time.Instant;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.eclipse.jdt.annotation.Nullable;
|
||||
@ -199,7 +199,7 @@ public class DigiplexZoneHandler extends BaseThingHandler {
|
||||
if (event.getZoneNo() == DigiplexZoneHandler.this.zoneNo) {
|
||||
status = event.getStatus().toOpenClosedType();
|
||||
extendedStatus = new StringType(event.getStatus().toString());
|
||||
lastTriggered = new DateTimeType(ZonedDateTime.now());
|
||||
lastTriggered = new DateTimeType(Instant.now());
|
||||
updateChannels(false);
|
||||
updateAreaNo(event.getAreaNo());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user