Skip to content

Commit

Permalink
Address an issue with Setup ID might be undefined.
Browse files Browse the repository at this point in the history
  • Loading branch information
KhaosT committed Nov 1, 2017
1 parent 13a8162 commit 91ba563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Accessory.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ Accessory.prototype.publish = function(info, allowInsecureRequest) {

if (info.setupID) {
this._setupID = info.setupID;
} else if (this._accessoryInfo.setupID === "") {
} else if (this._accessoryInfo.setupID === undefined || this._accessoryInfo.setupID === "") {
this._setupID = this._generateSetupID();
}

Expand Down

0 comments on commit 91ba563

Please sign in to comment.