mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Simplify DateTimeType handling for Satel Integra Alarm System
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
parent
fb9a998f59
commit
751bbf7495
@ -117,9 +117,9 @@ public class SatelSystemHandler extends SatelStateThingHandler {
|
|||||||
dateTime = dateTimeCommand;
|
dateTime = dateTimeCommand;
|
||||||
}
|
}
|
||||||
if (dateTime != null) {
|
if (dateTime != null) {
|
||||||
return Optional.of(new SetClockCommand(dateTime.getZonedDateTime()
|
return Optional.of(
|
||||||
.withZoneSameInstant(bridgeHandler.getZoneId()).toLocalDateTime(),
|
new SetClockCommand(dateTime.getZonedDateTime(bridgeHandler.getZoneId()).toLocalDateTime(),
|
||||||
bridgeHandler.getUserCode()));
|
bridgeHandler.getUserCode()));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user