node-switchbot 1.8.0-beta.4 → 1.8.0

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.
@@ -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" || '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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-switchbot",
3
- "version": "1.8.0-beta.4",
3
+ "version": "1.8.0",
4
4
  "description": "The node-switchbot is a Node.js module which allows you to control your Switchbot Devices through Bluetooth (BLE).",
5
5
  "main": "./lib/switchbot.js",
6
6
  "files": [
@@ -40,4 +40,4 @@
40
40
  "devDependencies": {
41
41
  "npm-check-updates": "^16.6.3"
42
42
  }
43
- }
43
+ }