Skip to content

Commit

Permalink
README: Fix Item persistence reference (#336)
Browse files Browse the repository at this point in the history
The member was renamed from `history` to `persistence` in #331.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
  • Loading branch information
jlaur authored Jun 4, 2024
1 parent 831927a commit a53216a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ See [openhab-js : ItemConfig](https://openhab.github.io/openhab-js/global.html#I

#### `ItemPersistence`

Calling `Item.history` returns an `ItemPersistence` object with the following functions:
Calling `Item.persistence` returns an `ItemPersistence` object with the following functions:

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

0 comments on commit a53216a

Please sign in to comment.