node-switchbot 1.8.0-beta.4 → 1.8.0-beta.5
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/lib/switchbot-advertising.js +1 -1
- package/lib/switchbot.js +0 -3
- package/package.json +1 -1
|
@@ -94,7 +94,7 @@ class SwitchbotAdvertising {
|
|
|
94
94
|
sd = this._parseServiceDataForWoContact(buf, onlog);//WoContact
|
|
95
95
|
} else if (model === "c") {
|
|
96
96
|
sd = this._parseServiceDataForWoCurtain(buf, onlog);// WoCurtain
|
|
97
|
-
} else if (model === "x"
|
|
97
|
+
} else if (model === "x") {
|
|
98
98
|
sd = this._parseServiceDataForWoBlindTilt(buf, onlog);// WoBlindTilt
|
|
99
99
|
} else if (model === "u") {
|
|
100
100
|
sd = this._parseServiceDataForWoBulb(manufacturerData, onlog);// WoBulb
|
package/lib/switchbot.js
CHANGED
|
@@ -107,7 +107,6 @@ class Switchbot {
|
|
|
107
107
|
"i",
|
|
108
108
|
"r",
|
|
109
109
|
"x",
|
|
110
|
-
"X",
|
|
111
110
|
],
|
|
112
111
|
},
|
|
113
112
|
id: { required: false, type: "string", min: 12, max: 17 },
|
|
@@ -246,7 +245,6 @@ class Switchbot {
|
|
|
246
245
|
device = new SwitchbotDeviceWoCurtain(peripheral, this.noble);
|
|
247
246
|
break;
|
|
248
247
|
case "x":
|
|
249
|
-
case "X":
|
|
250
248
|
device = new SwitchbotDeviceWoBlindTilt(peripheral, this.noble);
|
|
251
249
|
break;
|
|
252
250
|
case "u":
|
|
@@ -371,7 +369,6 @@ class Switchbot {
|
|
|
371
369
|
"i",
|
|
372
370
|
"r",
|
|
373
371
|
"x",
|
|
374
|
-
"X",
|
|
375
372
|
],
|
|
376
373
|
},
|
|
377
374
|
id: { required: false, type: "string", min: 12, max: 17 },
|
package/package.json
CHANGED