Skip to content

Commit

Permalink
#124, version 0.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Grizzelbee committed Aug 19, 2021
1 parent e00596e commit d189c87
Show file tree
Hide file tree
Showing 7 changed files with 149 additions and 120 deletions.
5 changes: 3 additions & 2 deletions admin/index_m.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,11 @@
} else if ($this.attr('type') === 'number') {
obj[id] = parseFloat($this.val());
} else {
let value = String.prototype.trim($this.val());
if (id === 'Password') {
obj[id] = encrypt(secret, $this.val());
obj[id] = encrypt(secret, value);
} else {
obj[id] = $this.val();
obj[id] = value;
}
}
});
Expand Down
4 changes: 2 additions & 2 deletions admin/words.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 11 additions & 2 deletions dyson-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,17 @@ module.exports.getDyson2faMail = async function(adapter, email, passwd, country,
return {error : `Received unexpected authentication-method from dyson API. Expecting: [EMAIL_PWD_2FA], received: [${result.data.authenticationMethod}].`};
}
}
} catch(err){
adapter.log.error('getDyson2faMail' + err);
} catch(error){
adapter.log.error('getDyson2faMail: ' + error);
switch (error.response.status) {
case 401:
this.log.error(`Unable to login to dyson server (http error 401 - unauthorized). Please check your login data.`);
this.log.error(`OnMessage: Username: [${email}]`);
this.log.error(`OnMessage: Password: [${passwd}]`);
this.log.error(`OnMessage: country: [${country}]`);
this.log.error(`OnMessage: locale: [${locale}]`);
break;
}
}
};

Expand Down
14 changes: 13 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
{
"common": {
"name": "dysonairpurifier",
"version": "0.9.2",
"version": "0.9.3",
"news": {
"0.9.3": {
"en": "Added some debug code - no new features.",
"de": "Debug-Code hinzugefügt - keine neuen Funktionen.",
"ru": "Добавлен отладочный код - новых функций нет.",
"pt": "Adicionado algum código de depuração - sem novos recursos.",
"nl": "Wat debug-code toegevoegd - geen nieuwe functies.",
"fr": "Ajout de code de débogage - pas de nouvelles fonctionnalités.",
"it": "Aggiunto del codice di debug - nessuna nuova funzionalità.",
"es": "Se agregó un código de depuración, sin características nuevas.",
"pl": "Dodano trochę kodu debugowania - brak nowych funkcji.",
"zh-cn": "添加了一些调试代码 - 没有新功能。"
},
"0.9.2": {
"en": "Added support for switzerland and updated certificate as well as dependencies.",
"de": "Unterstützung für die Schweiz und aktualisierte Zertifikate sowie Abhängigkeiten hinzugefügt.",
Expand Down
Loading

0 comments on commit d189c87

Please sign in to comment.