From 604294ae0b55b7f1e10581bca691d2405e492d7d Mon Sep 17 00:00:00 2001 From: SomeoneOnEarth Date: Sun, 19 Nov 2023 01:29:57 +0100 Subject: [PATCH] Corrected log strings --- source/HomeAssistantApp.mc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) {