Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
alesf committed Jan 16, 2021
1 parent 67a7164 commit 7f739ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ HttpAirQuality.prototype = {
}
});
}).then((value) => {
self.lastUpdate = new Date().getTime() / 1000;
self.updateData(params);
this.lastUpdate = new Date().getTime() / 1000;
this.updateData(params);
this.fetchInProgress = false;
}, (error) => {
self.AQISensorService.getCharacteristic(Characteristic.StatusFault).updateValue(1);
this.AQISensorService.getCharacteristic(Characteristic.StatusFault).updateValue(1);
this.fetchInProgress = false;
return error;
});
Expand Down

0 comments on commit 7f739ca

Please sign in to comment.