Skip to content

Commit

Permalink
fix reference variable
Browse files Browse the repository at this point in the history
  • Loading branch information
luc-ass committed Dec 22, 2022
1 parent 446edd8 commit 3268c72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,23 +314,23 @@ EvohomePlatform.prototype = {
)
.fail(function (err) {
that.log.error("Error getting system mode status:\n", err);
if (!childBridge){
if (!this.childBridge){
callback([]);
}
});
}.bind(this)
)
.fail(function (err) {
that.log.error("Error getting thermostats:\n", err);
if (!childBridge){
if (!this.childBridge){
callback([]);
}
});
}.bind(this)
)
.fail(function (err) {
that.log.error("Error getting locations:\n", err);
if (!childBridge){
if (!this.childBridge){
callback([]);
}
});
Expand All @@ -339,7 +339,7 @@ EvohomePlatform.prototype = {
.fail(function (err) {
// tell me if login did not work!
that.log.error("Error during login:\n", err);
if (!childBridge){
if (!this.childBridge){
callback([]);
}
});
Expand Down

0 comments on commit 3268c72

Please sign in to comment.