mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Simplify DateTimeType handling for Solax
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
parent
7d54e604f9
commit
512e3b239b
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user