From: Jacob Laursen Date: Sat, 6 Jul 2024 18:52:27 +0000 (+0200) Subject: [energidataservice] Fix JRuby tabs (#17005) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=4e3a3175ba9c87022b9123e9f87ed96315d65754;p=openhab-addons.git [energidataservice] Fix JRuby tabs (#17005) * Fix JRuby tabs * Fix Rule DSL example after breaking changes in PersistenceExtensions Signed-off-by: Jacob Laursen --- diff --git a/bundles/org.openhab.binding.energidataservice/README.md b/bundles/org.openhab.binding.energidataservice/README.md index 54ee27c0ac..84b9d699f7 100644 --- a/bundles/org.openhab.binding.energidataservice/README.md +++ b/bundles/org.openhab.binding.energidataservice/README.md @@ -440,7 +440,7 @@ var result = edsActions.calculateCheapestPeriod(time.Instant.now(), time.Instant ::: -::: tabs JRuby +::: tab JRuby ```ruby duration_phases = [37, 8, 4, 2, 4, 36, 41, 104].map { |duration| duration.minutes } @@ -528,7 +528,7 @@ var result = edsActions.calculateCheapestPeriod(time.Instant.now(), time.Instant ::: -::: tabs JRuby +::: tab JRuby ```ruby duration_phases = [37, 8, 4, 2, 4, 36, 41].map { |duration| duration.minutes } @@ -899,7 +899,7 @@ result = eds.calculate_cheapest_period(ZonedDateTime.now.to_instant, ```java var hourStart = now.plusHours(2).truncatedTo(ChronoUnit.HOURS) -var price = SpotPrice.historicState(hourStart).state +var price = SpotPrice.persistedState(hourStart).state logInfo("Spot price two hours from now", price.toString) ```