From f61cc6dec71f7d951dc5c6180dd771c6e02c9bf6 Mon Sep 17 00:00:00 2001 From: Jacob Laursen Date: Mon, 25 Nov 2024 22:56:28 +0100 Subject: [PATCH] Simplify DateTimeType handling for Exec Signed-off-by: Jacob Laursen --- .../openhab/binding/exec/internal/handler/ExecHandler.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bundles/org.openhab.binding.exec/src/main/java/org/openhab/binding/exec/internal/handler/ExecHandler.java b/bundles/org.openhab.binding.exec/src/main/java/org/openhab/binding/exec/internal/handler/ExecHandler.java index bf3e54ff553..47f73fa5be1 100644 --- a/bundles/org.openhab.binding.exec/src/main/java/org/openhab/binding/exec/internal/handler/ExecHandler.java +++ b/bundles/org.openhab.binding.exec/src/main/java/org/openhab/binding/exec/internal/handler/ExecHandler.java @@ -18,7 +18,6 @@ import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.math.BigDecimal; -import java.time.ZonedDateTime; import java.util.Arrays; import java.util.Calendar; import java.util.Date; @@ -296,9 +295,7 @@ public class ExecHandler extends BaseThingHandler { } updateState(OUTPUT, new StringType(transformedResponse)); - - DateTimeType stampType = new DateTimeType(ZonedDateTime.now()); - updateState(LAST_EXECUTION, stampType); + updateState(LAST_EXECUTION, new DateTimeType()); } }