mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[miio] delay refresh to avoid devices not ready yet (#8838)
* [miio] delay refresh to avoid devices not ready yet Delay refresh after command is send as some devices are not ready yet with the execution and will report wrong status. This is confusing to the users. Related forum topic: https://community.openhab.org/t/xiaomi-mi-air-purifier-xiaomi-mi-io/34840/300 Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> * [miio] remove change from PR
This commit is contained in:
parent
e70dfd7450
commit
788ca22724
@ -222,7 +222,9 @@ public class MiIoBasicHandler extends MiIoAbstractHandler {
|
||||
}
|
||||
}
|
||||
updateDataCache.invalidateValue();
|
||||
scheduler.schedule(() -> {
|
||||
updateData();
|
||||
}, 3000, TimeUnit.MILLISECONDS);
|
||||
} else {
|
||||
logger.debug("Actions not loaded yet");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user