Simplify DateTimeType handling for Tado

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
Jacob Laursen 2024-11-09 22:41:20 +01:00 committed by lsiepel
parent 2ba8a6d4b8
commit 182a0cca2b

View File

@ -233,7 +233,7 @@ public class TadoZoneStateAdapter {
}
private static DateTimeType toDateTimeType(OffsetDateTime offsetDateTime) {
return new DateTimeType(offsetDateTime.toZonedDateTime());
return new DateTimeType(offsetDateTime.toInstant());
}
private static State toTemperatureState(@Nullable TemperatureObject temperature, TemperatureUnit temperatureUnit) {