diff --git a/source/HomeAssistantApp.mc b/source/HomeAssistantApp.mc index 16f4461..0b63903 100644 --- a/source/HomeAssistantApp.mc +++ b/source/HomeAssistantApp.mc @@ -67,22 +67,22 @@ class HomeAssistantApp extends Application.AppBase { if ((Properties.getValue("api_key") as Lang.String).length() == 0) { if (Globals.scDebug) { - System.println("HomeAssistantMenuItem execScript(): No API key in the application settings."); + System.println("HomeAssistantApp getInitialView(): No API key in the application settings."); } return [new ErrorView(strNoApiKey + "."), new ErrorDelegate()] as Lang.Array; } else if (api_url.length() == 0) { if (Globals.scDebug) { - System.println("HomeAssistantMenuItem execScript(): No API URL in the application settings."); + System.println("HomeAssistantApp getInitialView(): No API URL in the application settings."); } return [new ErrorView(strNoApiUrl + "."), new ErrorDelegate()] as Lang.Array; } else if (api_url.substring(-1, api_url.length()).equals("/")) { if (Globals.scDebug) { - System.println("HomeAssistantMenuItem execScript(): API URL must not have a trailing slash '/'."); + System.println("HomeAssistantApp getInitialView(): API URL must not have a trailing slash '/'."); } return [new ErrorView(strTrailingSlashErr + "."), new ErrorDelegate()] as Lang.Array; } else if ((Properties.getValue("config_url") as Lang.String).length() == 0) { if (Globals.scDebug) { - System.println("HomeAssistantMenuItem execScript(): No configuration URL in the application settings."); + System.println("HomeAssistantApp getInitialView(): No configuration URL in the application settings."); } return [new ErrorView(strNoConfigUrl + "."), new ErrorDelegate()] as Lang.Array; } else if (! System.getDeviceSettings().phoneConnected) {