Skip to content

Commit a53216a

Browse files
authored
README: Fix Item persistence reference (#336)
The member was renamed from `history` to `persistence` in #331. Signed-off-by: Jacob Laursen <[email protected]>
1 parent 831927a commit a53216a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ See [openhab-js : ItemConfig](https://openhab.github.io/openhab-js/global.html#I
491491

492492
#### `ItemPersistence`
493493

494-
Calling `Item.history` returns an `ItemPersistence` object with the following functions:
494+
Calling `Item.persistence` returns an `ItemPersistence` object with the following functions:
495495

496496
- ItemPersistence :`object`
497497
- .averageSince(timestamp, serviceId) ⇒ `PersistedState | null`

0 commit comments

Comments
 (0)