Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README: Fix Item persistene reference #336

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

jlaur
Copy link
Contributor

@jlaur jlaur commented Jun 3, 2024

The member was renamed from history in #331.

I tested if history is still available for backwards compatibility, but it appears not:

var averageSpotPrice = items.Energi_Data_Service_Spot_Price.history.averageBetween(tomorrowPeakStart, tomorrowPeakEnd);

Result:

Failed to execute action: 1(Error: Failed to execute rule Test-persistence-00356c1b-7b21-4fc2-8789-9b804de7577f: TypeError: undefined has no such function "averageBetween": TypeError: undefined has no such function "averageBetween"

Signed-off-by: Jacob Laursen <[email protected]>
@jlaur jlaur requested a review from a team as a code owner June 3, 2024 21:21
@jlaur jlaur changed the title [readme] Fix Item persistene reference README: Fix Item persistene reference Jun 3, 2024
Copy link
Contributor

@florian-h05 florian-h05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix 👍

@florian-h05 florian-h05 added this to the to be released milestone milestone Jun 4, 2024
@florian-h05 florian-h05 added the documentation Improvements or additions to documentation label Jun 4, 2024
@florian-h05 florian-h05 merged commit a53216a into openhab:main Jun 4, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants