Skip to content

Commit bd2fd55

Browse files
authored
[energidataservice] Update JS example (openhab#16963)
Signed-off-by: Jimmy Tanagra <[email protected]>
1 parent 3770650 commit bd2fd55

File tree

1 file changed

+1
-1
lines changed
  • bundles/org.openhab.binding.energidataservice

1 file changed

+1
-1
lines changed

bundles/org.openhab.binding.energidataservice/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ logInfo("Spot price two hours from now", price.toString)
739739

740740
```javascript
741741
var hourStart = time.toZDT().plusHours(2).truncatedTo(time.ChronoUnit.HOURS);
742-
var price = items.SpotPrice.history.historicState(hourStart).quantityState;
742+
var price = items.SpotPrice.persistence.persistedState(hourStart).quantityState;
743743
console.log("Spot price two hours from now: " + price);
744744
```
745745

0 commit comments

Comments
 (0)