mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-06-16 19:38:34 +00:00
Added alerts on error
And removed (and changed) API key... doh!
This commit is contained in:
@ -86,6 +86,13 @@ class HomeAssistantMenuItem extends WatchUi.MenuItem {
|
||||
if (Globals.debug) {
|
||||
System.println("HomeAssistantMenuItem Note - executeScript(): No Internet connection, skipping API call.");
|
||||
}
|
||||
new Alert({
|
||||
:timeout => Globals.alertTimeout,
|
||||
:font => Graphics.FONT_SYSTEM_MEDIUM,
|
||||
:text => "No Internet connection",
|
||||
:fgcolor => Graphics.COLOR_RED,
|
||||
:bgcolor => Graphics.COLOR_BLACK
|
||||
}).pushView(WatchUi.SLIDE_IMMEDIATE);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user