From d2f1870f2d26b0d6b8ebe6a2dc0415b1fe4db09e Mon Sep 17 00:00:00 2001 From: Arnd Brugman Date: Fri, 20 Jan 2017 21:01:50 +0100 Subject: [PATCH] HotFix 1.0.10 BridgeCreateUser Invalid Data on Whitelist FIXED. --- huepi.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/huepi.js b/huepi.js index 1213934..998b1ae 100755 --- a/huepi.js +++ b/huepi.js @@ -418,7 +418,7 @@ huepi.prototype.BridgeCreateUser = function(DeviceName) DeviceName = DeviceName || 'WebInterface'; $.ajax({ type: 'POST', dataType: 'json', contentType: 'application/json', url: 'http://' + this.BridgeIP + '/api', - data: '{"devicetype": "huepi#"' + DeviceName + '}', success: function(data) { + data: '{"devicetype": "huepi#' + DeviceName + '"}', success: function(data) { if (data[0]) { if (data[0].success) { self.Username = data[0].success.username; diff --git a/package.json b/package.json index d95ee0a..c488d50 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "huepi", - "version": "1.0.9", + "version": "1.0.10", "description": "hue (Philips Wireless Lighting) Api interface for JavaScript", "main": "huepi.js", "scripts": {