]> git.basschouten.com Git - openhab-addons.git/commitdiff
[energidataservice] Update JS example (#16963)
authorjimtng <2554958+jimtng@users.noreply.github.com>
Sat, 29 Jun 2024 14:14:26 +0000 (00:14 +1000)
committerGitHub <noreply@github.com>
Sat, 29 Jun 2024 14:14:26 +0000 (16:14 +0200)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
bundles/org.openhab.binding.energidataservice/README.md

index 48b969c8eb2570dc17d395279df21c56d942edea..2b6301ebc369d288507f68ed5bf66b2d0ae5ba61 100644 (file)
@@ -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);
 ```