mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-27 07:41:39 +01:00
Simplify DateTimeType handling for Tado
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
389a0daf31
commit
daeb8c7a47
@ -233,7 +233,7 @@ public class TadoZoneStateAdapter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static DateTimeType toDateTimeType(OffsetDateTime offsetDateTime) {
|
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) {
|
private static State toTemperatureState(@Nullable TemperatureObject temperature, TemperatureUnit temperatureUnit) {
|
||||||
|
Loading…
Reference in New Issue
Block a user