node-red-contrib-homebridge-automation 0.1.7 → 0.1.8
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/README.md +1 -1
- package/lib/Service.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -58,7 +58,7 @@ The above Node-RED Flow, turns on my 'Outside Office' light when the powder room
|
|
|
58
58
|
* [To start Node-RED in DEBUG mode, and output Homebridge-Automation debug logs start Node-RED like this.](#to-start-node-red-in-debug-mode-and-output-homebridge-automation-debug-logs-start-node-red-like-this)
|
|
59
59
|
|
|
60
60
|
<!-- Created by https://github.com/ekalinin/github-markdown-toc -->
|
|
61
|
-
<!-- Added by: sgracey, at:
|
|
61
|
+
<!-- Added by: sgracey, at: Sun 15 Jan 2023 10:16:14 EST -->
|
|
62
62
|
|
|
63
63
|
<!--te-->
|
|
64
64
|
|
package/lib/Service.js
CHANGED
|
@@ -128,7 +128,7 @@ Service.prototype.toList = function (context) {
|
|
|
128
128
|
// debug("characteristic", characteristic)
|
|
129
129
|
// debug("perms", context.opt);
|
|
130
130
|
// debug("perms", (context.opt ? "perms" + context.opt.perms + characteristic.perms.includes(context.opt.perms) : "noperms"));
|
|
131
|
-
if (characteristic.type !== '00000023' && (context.opt ? characteristic.perms.includes(context.opt.perms) : true)) {
|
|
131
|
+
if (characteristic.type !== '00000023' && characteristic.perms && (context.opt ? characteristic.perms.includes(context.opt.perms) : true)) {
|
|
132
132
|
// debug("Yes", context.name, characteristic.description, characteristic.perms);
|
|
133
133
|
descriptions = (descriptions ? descriptions + ', ' : '') + characteristic.description.replace(/ /g, "").replace(/\./g, "_");
|
|
134
134
|
getCharacteristics = (getCharacteristics ? getCharacteristics + ',' : '') + characteristic.getCharacteristic;
|