Compare commits

...

2 Commits

Author SHA1 Message Date
Philip Abbey
27dc66d005 Update HomeAssistantApp.mc
Cosmetic
2025-09-05 10:36:35 +01:00
Philip Abbey
9dbae5a64a Cosmetic
Code tidy
2025-09-05 10:01:24 +01:00
2 changed files with 13 additions and 13 deletions

View File

@@ -143,7 +143,7 @@ class HomeAssistantApp extends Application.AppBase {
} else {
ret = [new WatchUi.View(), new WatchUi.BehaviorDelegate()];
}
// Separated from Settings.update() in order to call after fetchMenuConfig() and not call it on changes settings.
// Separated from Settings.update() in order to call after fetchMenuConfig() and not call it on changed settings.
Settings.webhook();
return ret;
}
@@ -265,13 +265,13 @@ class HomeAssistantApp extends Application.AppBase {
var phoneConnected = System.getDeviceSettings().phoneConnected;
var internetAvailable = System.getDeviceSettings().connectionAvailable;
if (! phoneConnected or ! internetAvailable) {
// System.println("HomeAssistantApp fetchMenuConfig(): No Phone connection, skipping API call.");
var errorRez = $.Rez.Strings.NoPhone;
if (Settings.getWifiLteExecutionEnabled()) {
errorRez = $.Rez.Strings.NoPhoneNoCache;
} else if (! internetAvailable) {
errorRez = $.Rez.Strings.Unavailable;
}
// System.println("HomeAssistantApp fetchMenuConfig(): No Phone connection, skipping API call.");
if (!mIsApp) {
WatchUi.requestUpdate();
} else {