Skip to content

Commit

Permalink
Added connecting indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinvdpol committed Sep 18, 2024
1 parent 93e007d commit 9b2e773
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Device.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions locales/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9b2e773

Please sign in to comment.