From 9b2e7734d86898efa14b64fd0392db426d8ccf66 Mon Sep 17 00:00:00 2001 From: Edwin van de Pol Date: Wed, 18 Sep 2024 13:57:16 +0200 Subject: [PATCH] Added connecting indicator --- lib/Device.js | 4 ++++ locales/de.json | 3 +++ locales/en.json | 3 +++ locales/fr.json | 3 +++ locales/nl.json | 3 +++ 5 files changed, 16 insertions(+) diff --git a/lib/Device.js b/lib/Device.js index b1d7f1a..8918914 100644 --- a/lib/Device.js +++ b/lib/Device.js @@ -21,6 +21,10 @@ class Device extends OAuth2Device { // Device initialized async onOAuth2Init() { + // Connecting to API + await this.setUnavailable(this.homey.__('authentication.connecting')); + + // Set Tedee ID this.tid = Number(this.getSetting('tedee_id')); // Register event listener diff --git a/locales/de.json b/locales/de.json index b8f0ed1..b88b584 100644 --- a/locales/de.json +++ b/locales/de.json @@ -5,6 +5,9 @@ "2": "Eigentümer", "3": "Keiner" }, + "authentication": { + "connecting": "Verbinden..." + }, "error": { "401": "Die Tedee-API-Anmeldeinformationen sind falsch", "403": "Die Tedee-API hat den Zugriff auf dieses Gerät verweigert", diff --git a/locales/en.json b/locales/en.json index abbecce..31c95a3 100644 --- a/locales/en.json +++ b/locales/en.json @@ -5,6 +5,9 @@ "2": "Owner", "3": "None" }, + "authentication": { + "connecting": "Connecting..." + }, "error": { "401": "Tedee API credentials are incorrect", "403": "Tedee API has denied access to this device", diff --git a/locales/fr.json b/locales/fr.json index 4837478..0b831c0 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -5,6 +5,9 @@ "2": "Propriétaire", "3": "Aucun" }, + "authentication": { + "connecting": "De liaison..." + }, "error": { "401": "Les informations d'identification de l'API Tedee sont incorrectes", "403": "L'API Tedee a refusé l'accès à cet appareil", diff --git a/locales/nl.json b/locales/nl.json index 7ca09a2..933780f 100644 --- a/locales/nl.json +++ b/locales/nl.json @@ -5,6 +5,9 @@ "2": "Eigenaar", "3": "Geen" }, + "authentication": { + "connecting": "Bezig met verbinden..." + }, "error": { "401": "Inloggegevens van de Tedee API zijn onjuist", "403": "Tedee API heeft de toegang tot dit apparaat geweigerd",