mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Fix state and timestamp being discarded on store with alias (#16845)
Fixes #16844 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
dc780ac4b1
commit
d926028614
@ -154,7 +154,7 @@ public class JdbcPersistenceService extends JdbcMapper implements ModifiablePers
|
||||
@Override
|
||||
public void store(Item item, ZonedDateTime date, State state, @Nullable String alias) {
|
||||
// alias is not supported
|
||||
scheduler.execute(() -> internalStore(item, null, item.getState()));
|
||||
scheduler.execute(() -> internalStore(item, date, state));
|
||||
}
|
||||
|
||||
private synchronized void internalStore(Item item, @Nullable ZonedDateTime date, State state) {
|
||||
|
Loading…
Reference in New Issue
Block a user