mirror of
				https://github.com/house-of-abbey/GarminHomeAssistant.git
				synced 2025-10-30 23:38:15 +00:00 
			
		
		
		
	| @@ -16,6 +16,11 @@ | |||||||
| // | // | ||||||
| // 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. | ||||||
|  | // | ||||||
| //----------------------------------------------------------------------------------- | //----------------------------------------------------------------------------------- | ||||||
|  |  | ||||||
| using Toybox.Lang; | using Toybox.Lang; | ||||||
| @@ -93,8 +98,6 @@ class Settings { | |||||||
|                         Background.deleteTemporalEvent(); |                         Background.deleteTemporalEvent(); | ||||||
|                         Background.deleteActivityCompletedEvent(); |                         Background.deleteActivityCompletedEvent(); | ||||||
|                     } |                     } | ||||||
|                 } else { |  | ||||||
|                     ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoPhone) as Lang.String); |  | ||||||
|                 } |                 } | ||||||
|             } else { |             } else { | ||||||
|                 // Explicitly disable the background event which persists when the application closes. |                 // Explicitly disable the background event which persists when the application closes. | ||||||
|   | |||||||
| @@ -260,7 +260,7 @@ class WebhookManager { | |||||||
|         ]; |         ]; | ||||||
|  |  | ||||||
|         if (Toybox has :ActivityMonitor) { |         if (Toybox has :ActivityMonitor) { | ||||||
|             System.println("WebhookManager registerWebhookSensors(): has ActivityMonitor class"); |             // System.println("WebhookManager registerWebhookSensors(): has ActivityMonitor class"); | ||||||
|             var activityInfo = ActivityMonitor.getInfo(); |             var activityInfo = ActivityMonitor.getInfo(); | ||||||
|             sensors.add({ |             sensors.add({ | ||||||
|                 "name"                => "Steps today", |                 "name"                => "Steps today", | ||||||
| @@ -309,7 +309,7 @@ class WebhookManager { | |||||||
|                 }); |                 }); | ||||||
|             } |             } | ||||||
|         } else { |         } else { | ||||||
|             System.println("WebhookManager registerWebhookSensors(): has no ActivityMonitor class"); |             //System.println("WebhookManager registerWebhookSensors(): has no ActivityMonitor class"); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         if (Activity has :getProfileInfo) { |         if (Activity has :getProfileInfo) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user