Skip to content

Commit

Permalink
HotFix 1.0.10 BridgeCreateUser
Browse files Browse the repository at this point in the history
Invalid Data on Whitelist FIXED.
  • Loading branch information
ArndBrugman committed Jan 20, 2017
1 parent 2647938 commit d2f1870
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion huepi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit d2f1870

Please sign in to comment.