Skip to content

Commit 359d63f

Browse files
authored
Fix state and timestamp being discarded on store with alias (openhab#16845)
Fixes openhab#16844 Signed-off-by: Jacob Laursen <[email protected]>
1 parent 43fa2c7 commit 359d63f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundles/org.openhab.persistence.jdbc/src/main/java/org/openhab/persistence/jdbc/internal/JdbcPersistenceService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public void store(Item item, ZonedDateTime date, State state) {
154154
@Override
155155
public void store(Item item, ZonedDateTime date, State state, @Nullable String alias) {
156156
// alias is not supported
157-
scheduler.execute(() -> internalStore(item, null, item.getState()));
157+
scheduler.execute(() -> internalStore(item, date, state));
158158
}
159159

160160
private synchronized void internalStore(Item item, @Nullable ZonedDateTime date, State state) {

0 commit comments

Comments
 (0)