mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2026-03-13 00:06:44 +00:00
Update HomeAssistantApp.mc
Faster custom Glance update.
This commit is contained in:
@@ -998,11 +998,11 @@ class HomeAssistantApp extends Application.AppBase {
|
|||||||
mIsApp = false; // A bit unnecessary given the default
|
mIsApp = false; // A bit unnecessary given the default
|
||||||
mApiStatus = WatchUi.loadResource($.Rez.Strings.Checking) as Lang.String;
|
mApiStatus = WatchUi.loadResource($.Rez.Strings.Checking) as Lang.String;
|
||||||
Settings.update();
|
Settings.update();
|
||||||
|
glanceTemplate();
|
||||||
updateStatus();
|
updateStatus();
|
||||||
mGlanceTimer = new Timer.Timer();
|
mGlanceTimer = new Timer.Timer();
|
||||||
mGlanceTimer.start(method(:updateStatus), Globals.scApiBackoffMs, true);
|
mGlanceTimer.start(method(:updateStatus), Globals.scApiBackoffMs, true);
|
||||||
// Although this is now known immediately, wait before displaying so the status can be seen first.
|
// Although this is now known immediately, wait before displaying so the status can be seen first.
|
||||||
glanceTemplate();
|
|
||||||
return [new HomeAssistantGlanceView(self)];
|
return [new HomeAssistantGlanceView(self)];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user