Skip to content

Commit

Permalink
Fix typo causing rounding errors in degrees C mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
adriancable committed Aug 2, 2019
1 parent 2d9c177 commit 714ef02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/nest-thermostat-accessory.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ NestThermostatAccessory.prototype.usesFahrenheit = function () {

NestThermostatAccessory.prototype.unroundTemperature = function (key) {
// Fudge the temperature to correct rounding discrepancy between Nest read-out and HomeKit read-out
if (!this.usesFahrenheit) {
if (!this.usesFahrenheit()) {
return this.device[key];
} else {
let tempInF = Math.round(celsiusToFahrenheit(this.device[key]));
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
"prepublishOnly": "npm run lint",
"preversion": "npm run lint"
},
"version": "3.2.2",
"version": "3.2.3",
"warnings": [
{
"code": "ENOTSUP",
"required": {
"node": ">=7.0.0",
"homebridge": ">=0.2.5"
},
"pkgid": "[email protected].2"
"pkgid": "[email protected].3"
}
]
}

0 comments on commit 714ef02

Please sign in to comment.