mirror of
https://github.com/danieldemus/openhab-addons
synced 2026-07-29 12:34:21 +02:00
Simplify DateTimeType handling for Solax
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
+1
-2
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
+1
-2
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user