Initial solution

This commit is contained in:
Philip Abbey
2024-01-08 00:08:12 +00:00
parent 24ebc72080
commit 0a2d257421
8 changed files with 128 additions and 50 deletions

View File

@ -102,6 +102,8 @@ class HomeAssistantToggleMenuItem extends WatchUi.ToggleMenuItem {
var myTimer = new Timer.Timer();
// Now this feels very "closely coupled" to the application, but it is the most reliable method instead of using a timer.
myTimer.start(getApp().method(:updateNextMenuItem), Globals.scApiBackoff, false);
// Revert status
status = getApp().getApiStatus();
break;
case 404: