node-red-contrib-homebridge-automation 0.1.12-beta.14 → 0.1.12-beta.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-homebridge-automation",
3
- "version": "0.1.12-beta.14",
3
+ "version": "0.1.12-beta.15",
4
4
  "description": "NodeRED Automation for HomeBridge",
5
5
  "main": "src/HAP-NodeRed.js",
6
6
  "scripts": {
@@ -23,19 +23,19 @@ module.exports = function (RED) {
23
23
  * @return {type} description
24
24
  */
25
25
 
26
- function hbConfNode(n) {
27
- RED.nodes.createNode(this, n);
28
- this.username = n.username;
29
- this.macAddress = n.macAddress || '';
26
+ function hbConfNode(config) {
27
+ RED.nodes.createNode(this, config);
28
+ this.username = config.username;
29
+ this.macAddress = config.macAddress || '';
30
30
  this.password = this.credentials.password;
31
31
 
32
- this.hbConf = new HBConfNode(n, RED); // Initialize the class instance
32
+ this.hbConfNode = new HBConfNode(config, RED); // Initialize the class instance
33
33
 
34
34
  this.on('close', function () {
35
35
  this.hbConf.close(); // Close any open connections
36
36
  });
37
37
  }
38
-
38
+ console.log('Registering node types', "hb-conf", hbConfNode);
39
39
  RED.nodes.registerType("hb-conf", hbConfNode, {
40
40
  credentials: {
41
41
  password: {