Skip to content

Commit

Permalink
Fix an exception after the settings change
Browse files Browse the repository at this point in the history
  • Loading branch information
aivus committed Sep 23, 2024
1 parent 8bd498b commit e88e60d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .homeychangelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,8 @@
},
"0.9.0": {
"en": "Add experimental support of new interaction protocol for Gree-compatible HVACs with version >=1.21"
},
"0.9.1": {
"en": "Add experimental support of new interaction protocol for Gree-compatible HVACs with version >=1.21"
}
}
2 changes: 1 addition & 1 deletion drivers/gree_cooper_hunter_hvac/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ class GreeHVACDevice extends Homey.Device {

if (changedKeys.indexOf('encryption_mode') > -1) {
this.log('Changing the encryption mode setting from', oldSettings.encryption_mode, 'to', newSettings.encryption_mode);
this.homey.setTimeout(this.reconnect, 1000);
this.homey.setTimeout(this.reconnect.bind(this), 1000);
}

return Promise.resolve();
Expand Down

0 comments on commit e88e60d

Please sign in to comment.