From bd2fd5555a6d688aa953f95cc18af68c7a14393b Mon Sep 17 00:00:00 2001 From: jimtng <2554958+jimtng@users.noreply.github.com> Date: Sun, 30 Jun 2024 00:14:26 +1000 Subject: [PATCH] [energidataservice] Update JS example (#16963) Signed-off-by: Jimmy Tanagra --- bundles/org.openhab.binding.energidataservice/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.energidataservice/README.md b/bundles/org.openhab.binding.energidataservice/README.md index 48b969c8eb2..2b6301ebc36 100644 --- a/bundles/org.openhab.binding.energidataservice/README.md +++ b/bundles/org.openhab.binding.energidataservice/README.md @@ -739,7 +739,7 @@ logInfo("Spot price two hours from now", price.toString) ```javascript var hourStart = time.toZDT().plusHours(2).truncatedTo(time.ChronoUnit.HOURS); -var price = items.SpotPrice.history.historicState(hourStart).quantityState; +var price = items.SpotPrice.persistence.persistedState(hourStart).quantityState; console.log("Spot price two hours from now: " + price); ```