From 714ef02dd30b8e602b44587010e73ec930c3ae7d Mon Sep 17 00:00:00 2001 From: Adrian Cable Date: Thu, 1 Aug 2019 20:52:45 -0700 Subject: [PATCH] Fix typo causing rounding errors in degrees C mode. --- lib/nest-thermostat-accessory.js | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/nest-thermostat-accessory.js b/lib/nest-thermostat-accessory.js index aff41ba..85c9cd3 100644 --- a/lib/nest-thermostat-accessory.js +++ b/lib/nest-thermostat-accessory.js @@ -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])); diff --git a/package.json b/package.json index 4fcd09b..1e329da 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "prepublishOnly": "npm run lint", "preversion": "npm run lint" }, - "version": "3.2.2", + "version": "3.2.3", "warnings": [ { "code": "ENOTSUP", @@ -39,7 +39,7 @@ "node": ">=7.0.0", "homebridge": ">=0.2.5" }, - "pkgid": "homebridge-nest@3.2.2" + "pkgid": "homebridge-nest@3.2.3" } ] }