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,8 +117,8 @@ public class SatelSystemHandler extends SatelStateThingHandler {
|
||||
dateTime = dateTimeCommand;
|
||||
}
|
||||
if (dateTime != null) {
|
||||
return Optional.of(new SetClockCommand(dateTime.getZonedDateTime()
|
||||
.withZoneSameInstant(bridgeHandler.getZoneId()).toLocalDateTime(),
|
||||
return Optional.of(
|
||||
new SetClockCommand(dateTime.getZonedDateTime(bridgeHandler.getZoneId()).toLocalDateTime(),
|
||||
bridgeHandler.getUserCode()));
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user