mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Simplify DateTimeType handling for Exec
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
parent
68527c03f5
commit
f61cc6dec7
@ -18,7 +18,6 @@ import java.io.BufferedReader;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.time.ZonedDateTime;
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
@ -296,9 +295,7 @@ public class ExecHandler extends BaseThingHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateState(OUTPUT, new StringType(transformedResponse));
|
updateState(OUTPUT, new StringType(transformedResponse));
|
||||||
|
updateState(LAST_EXECUTION, new DateTimeType());
|
||||||
DateTimeType stampType = new DateTimeType(ZonedDateTime.now());
|
|
||||||
updateState(LAST_EXECUTION, stampType);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user