-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from NRCHKB/dev
Release 0.6.1 - Fixes for #22 and #66 - Some renaming to our new organisation name - reintroduced debug mode for our module, run with DEBUG=NRCHKB node-red - some small changes to process of finding Parent Service as Linked Service
- Loading branch information
Showing
13 changed files
with
182 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module.exports = function() { | ||
("use strict"); | ||
const debug = require("debug")("NRCHKB"); | ||
|
||
const handleUnpair = function(username, callback) { | ||
debug("[%s] Unpairing with client %s", this.displayName, username); | ||
|
||
// Unpair | ||
this._accessoryInfo.removePairedClient(username); | ||
this._accessoryInfo.save(); | ||
|
||
// update our advertisement so it can pick up on the paired status of AccessoryInfo | ||
if (this._advertiser){ | ||
this._advertiser.updateAdvertisement(); | ||
} | ||
|
||
callback(); | ||
}; | ||
|
||
return { | ||
handleUnpair: handleUnpair | ||
}; | ||
}; |
Oops, something went wrong.