mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-04-30 04:32:26 +00:00
Changes as per issue.
This commit is contained in:
@ -14,7 +14,12 @@
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
// Home Assistant settings.
|
||||
// Home Assistant settings.
|
||||
//
|
||||
// WARNING!
|
||||
//
|
||||
// Careful putting ErrorView.show() calls in here. They need to be guarded so that
|
||||
// they do not get called when only displaying the glance view.
|
||||
//
|
||||
//-----------------------------------------------------------------------------------
|
||||
|
||||
@ -93,8 +98,6 @@ class Settings {
|
||||
Background.deleteTemporalEvent();
|
||||
Background.deleteActivityCompletedEvent();
|
||||
}
|
||||
} else {
|
||||
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoPhone) as Lang.String);
|
||||
}
|
||||
} else {
|
||||
// Explicitly disable the background event which persists when the application closes.
|
||||
|
@ -260,7 +260,7 @@ class WebhookManager {
|
||||
];
|
||||
|
||||
if (Toybox has :ActivityMonitor) {
|
||||
System.println("WebhookManager registerWebhookSensors(): has ActivityMonitor class");
|
||||
// System.println("WebhookManager registerWebhookSensors(): has ActivityMonitor class");
|
||||
var activityInfo = ActivityMonitor.getInfo();
|
||||
sensors.add({
|
||||
"name" => "Steps today",
|
||||
@ -309,7 +309,7 @@ class WebhookManager {
|
||||
});
|
||||
}
|
||||
} else {
|
||||
System.println("WebhookManager registerWebhookSensors(): has no ActivityMonitor class");
|
||||
//System.println("WebhookManager registerWebhookSensors(): has no ActivityMonitor class");
|
||||
}
|
||||
|
||||
if (Activity has :getProfileInfo) {
|
||||
|
Reference in New Issue
Block a user