Skip to content

Commit 026c1e2

Browse files
authored
[awattar] Fix price handler refresh (openhab#17032)
Signed-off-by: Jan N. Klug <[email protected]>
1 parent 32fd329 commit 026c1e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bundles/org.openhab.binding.awattar/src/main/java/org/openhab/binding/awattar/internal/handler/AwattarPriceHandler.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ public void initialize() {
9090
* here
9191
*/
9292
thingRefresher = scheduler.scheduleAtFixedRate(this::refreshChannels,
93-
getMillisToNextMinute(1, timeZoneProvider), THING_REFRESH_INTERVAL, TimeUnit.SECONDS);
93+
getMillisToNextMinute(1, timeZoneProvider), THING_REFRESH_INTERVAL * 1000,
94+
TimeUnit.MILLISECONDS);
9495
}
9596
}
9697
updateStatus(ThingStatus.UNKNOWN);

0 commit comments

Comments
 (0)