From 511b1873f753bd79b3e2c1a507410398c8c90f48 Mon Sep 17 00:00:00 2001 From: Chloe Stars Date: Fri, 17 Jul 2015 18:29:23 -0700 Subject: [PATCH] I forked unofficial-nest-api and added support for 'off'. For now the package location has been changed to reflect this. I've submitted a pull request but it doesn't look like it's been touched in a while so I'm not sure it's going to get merged. --- package.json | 2 +- platforms/Nest.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index bd18348..b55bbd6 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "request": "2.49.x", "sonos": "0.8.x", "telldus-live": "0.2.x", - "unofficial-nest-api": "0.1.x", + "unofficial-nest-api": "git+https://github.com/hachidorii/unofficial_nodejs_nest.git#d8d48edc952b049ff6320ef99afa7b2f04cdee98", "wemo": "0.2.x", "wink-js": "0.0.5", "xml2js": "0.4.x", diff --git a/platforms/Nest.js b/platforms/Nest.js index 117e4b8..414fcef 100644 --- a/platforms/Nest.js +++ b/platforms/Nest.js @@ -186,7 +186,6 @@ NestThermostatAccessory.prototype = { var targetTemperatureType = 'off'; switch(targetHeatingCooling) { case 0: - // this will crash unnofficial-node-api, it needs to be forked to accept the input targetTemperatureType = 'off'; break; case 1: