[awattar] Fix price handler refresh (#17032)

Signed-off-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
J-N-K 2024-07-09 19:54:53 +02:00 committed by Ciprian Pascu
parent 23f78193aa
commit 1e9991767b

View 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);