Skip to content

Commit

Permalink
homebridge v0.4.20
Browse files Browse the repository at this point in the history
  • Loading branch information
ebaauw committed May 3, 2017
1 parent ea5fa0b commit b93413a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion lib/HueBridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ HueBridge.prototype.accessories = function() {
// jshint -W106
this.accessoryMap = {};
this.accessoryList = [];
return this._request('get', '/config').then(function(obj) {
return this._request('get', 'philipshue/config').then(function(obj) {
// return this._request('get', '/config').then(function(obj) {
this.name = obj.name;
this.uuid_base = obj.bridgeid;
this.username = this.platform.config.users[this.uuid_base] || '';
Expand Down
4 changes: 0 additions & 4 deletions lib/HuePlatform.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ function setHomebridge(homebridge) {
Characteristic = homebridge.hap.Characteristic;
homebridgeVersion = homebridge.serverVersion;

Characteristic.ProgrammableSwitchEvent.SINGLE_PRESS = 0;
Characteristic.ProgrammableSwitchEvent.DOUBLE_PRESS = 1;
Characteristic.ProgrammableSwitchEvent.LONG_PRESS = 2;

Characteristic.Resource = function() {
Characteristic.call(this, 'Resource', Characteristic.Resource.UUID);
this.setProps({
Expand Down

0 comments on commit b93413a

Please sign in to comment.