Simplify DateTimeType handling for Exec

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
Jacob Laursen 2024-11-25 22:56:28 +01:00 committed by lsiepel
parent 68527c03f5
commit f61cc6dec7

View File

@ -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());
}
}