More responsive status when using a polling delay

When using a polling delay, an action will trigger an immediate round of updates.
This commit is contained in:
Philip Abbey
2024-07-20 19:16:42 +01:00
parent d2fc64836a
commit a49dd6554f
4 changed files with 18 additions and 1 deletions

View File

@ -196,6 +196,8 @@ class HomeAssistantToggleMenuItem extends WatchUi.ToggleMenuItem {
break;
case 200:
// System.println("HomeAssistantToggleMenuItem onReturnSetState(): Service executed.");
getApp().forceStatusUpdates();
var state;
var d = data as Lang.Array;
for(var i = 0; i < d.size(); i++) {