]> git.basschouten.com Git - openhab-addons.git/commitdiff
[awattar] Fix price handler refresh (#17032)
authorJ-N-K <github@klug.nrw>
Tue, 9 Jul 2024 17:54:53 +0000 (19:54 +0200)
committerGitHub <noreply@github.com>
Tue, 9 Jul 2024 17:54:53 +0000 (19:54 +0200)
Signed-off-by: Jan N. Klug <github@klug.nrw>
bundles/org.openhab.binding.awattar/src/main/java/org/openhab/binding/awattar/internal/handler/AwattarPriceHandler.java

index 4f44bfebc70b4512a9a8d87c2fed70ef203ad0a5..27680741b7098958463c01d7db2febe149cdac26 100644 (file)
@@ -90,7 +90,8 @@ public class AwattarPriceHandler extends BaseThingHandler {
                  * here
                  */
                 thingRefresher = scheduler.scheduleAtFixedRate(this::refreshChannels,
-                        getMillisToNextMinute(1, timeZoneProvider), THING_REFRESH_INTERVAL, TimeUnit.SECONDS);
+                        getMillisToNextMinute(1, timeZoneProvider), THING_REFRESH_INTERVAL * 1000,
+                        TimeUnit.MILLISECONDS);
             }
         }
         updateStatus(ThingStatus.UNKNOWN);