Simplify DateTimeType handling for Solax

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
Jacob Laursen 2024-11-24 23:25:27 +01:00 committed by lsiepel
parent 7d54e604f9
commit 512e3b239b
2 changed files with 2 additions and 4 deletions

View File

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