Skip to content

Commit

Permalink
fixed false login error
Browse files Browse the repository at this point in the history
  • Loading branch information
Sickbart committed Mar 13, 2023
1 parent 10a9a3c commit bdefd47
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 10 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ The pictures of the SureFlap® devices are provided free to use from [Sure Petca

## Changelog

### 1.1.7 (2023-03-13)
* (Sickboy78) fixed false login error in case pet had no photo

### 1.1.6 (2023-01-07)
* (Sickboy78) added battery voltage configuration
* (Sickboy78) added translation for adapter settings
Expand Down
14 changes: 8 additions & 6 deletions admin/index_m.html
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,14 @@
class: 'pet-text',
text: pet.name + ' (' + pet.id + ')'
});
const petImage = $('<img>',{
class: 'pet-image',
alt: pet.name,
src: pet.photo.location
});
petImage.appendTo(petDiv);
if(pet.photo !== undefined && pet.photo.location !== undefined) {
const petImage = $('<img>',{
class: 'pet-image',
alt: pet.name,
src: pet.photo.location
});
petImage.appendTo(petDiv);
}
petText.appendTo(petDiv);
petDiv.appendTo(div);
});
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": "sureflap",
"version": "1.1.6",
"version": "1.1.7",
"news": {
"1.1.7": {
"en": "fixed false login error",
"de": "falscher Login-Fehler behoben",
"ru": "Слава Украины",
"pt": "corrigido erro de login falso",
"nl": "foutieve login fout hersteld",
"fr": "correction d'une erreur de fausse connexion",
"it": "corretto il falso errore di login",
"es": "Corregido error de login falso",
"pl": "naprawiony błąd fałszywego logowania",
"zh-cn": "修复了错误的登录错误"
},
"1.1.6": {
"en": "configurable battery voltages",
"de": "konfigurierbare Batteriespannungen",
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class Sureflap extends utils.Adapter {
* starts loading data from the surepet API
*/
startLoadingData() {
this.log.debug(`starting SureFlap Adapter v1.1.6`);
this.log.debug(`starting SureFlap Adapter v1.1.7`);
clearTimeout(this.timerId);
this.doAuthenticate()
.then(() => this.startUpdateLoop())
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.sureflap",
"version": "1.1.6",
"version": "1.1.7",
"description": "Adpater für smarte Haustiergeräte von Sure Petcare",
"author": {
"name": "Sickboy78",
Expand Down

0 comments on commit bdefd47

Please sign in to comment.