mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-27 07:41:39 +01:00
[awattar] Fix price handler refresh (#17032)
Signed-off-by: Jan N. Klug <github@klug.nrw>
This commit is contained in:
parent
32fd329160
commit
026c1e2b99
@ -90,7 +90,8 @@ public class AwattarPriceHandler extends BaseThingHandler {
|
|||||||
* here
|
* here
|
||||||
*/
|
*/
|
||||||
thingRefresher = scheduler.scheduleAtFixedRate(this::refreshChannels,
|
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);
|
updateStatus(ThingStatus.UNKNOWN);
|
||||||
|
Loading…
Reference in New Issue
Block a user