Simplify DateTimeType handling for Solax

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
Jacob Laursen 2024-11-24 23:25:27 +01:00 committed by Ciprian Pascu
parent 85c4c1298d
commit 8c920c7621
2 changed files with 2 additions and 4 deletions

View File

@ -12,7 +12,6 @@
*/
package org.openhab.binding.solax.internal.handlers;
import java.time.ZonedDateTime;
import java.util.Set;
import org.eclipse.jdt.annotation.NonNullByDefault;
@ -124,6 +123,6 @@ public class SolaxLocalAccessChargerHandler extends SolaxLocalAccessAbstractHand
SIUnits.CELSIUS, supportedChannels);
// Binding provided data
updateState(SolaxBindingConstants.CHANNEL_TIMESTAMP, new DateTimeType(ZonedDateTime.now()));
updateState(SolaxBindingConstants.CHANNEL_TIMESTAMP, new DateTimeType());
}
}

View File

@ -12,7 +12,6 @@
*/
package org.openhab.binding.solax.internal.handlers;
import java.time.ZonedDateTime;
import java.util.Set;
import org.eclipse.jdt.annotation.NonNullByDefault;
@ -194,6 +193,6 @@ public class SolaxLocalAccessInverterHandler extends SolaxLocalAccessAbstractHan
Units.HERTZ, supportedChannels);
// Binding provided data
updateState(SolaxBindingConstants.CHANNEL_TIMESTAMP, new DateTimeType(ZonedDateTime.now()));
updateState(SolaxBindingConstants.CHANNEL_TIMESTAMP, new DateTimeType());
}
}