@lumiastream/tapo-cove 3.0.8 → 3.0.9
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/dist/index.d.ts +1 -1
- package/dist/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -452,10 +452,11 @@ var discover = (config) => __async(void 0, null, function* () {
|
|
|
452
452
|
return;
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
+
console.log("deviceInfo: ", deviceInfo);
|
|
455
456
|
switch (deviceInfo.deviceType) {
|
|
456
457
|
case "IOT.SMARTBULB":
|
|
457
458
|
case "SMART.TAPOBULB": {
|
|
458
|
-
if (config.types && config.types
|
|
459
|
+
if (config.types && !config.types.includes(import_lumia_rgb_types.ILumiaDeviceType.LIGHT)) {
|
|
459
460
|
return;
|
|
460
461
|
}
|
|
461
462
|
const isTapo = deviceInfo.deviceType === "SMART.TAPOBULB";
|
|
@@ -483,7 +484,7 @@ var discover = (config) => __async(void 0, null, function* () {
|
|
|
483
484
|
}
|
|
484
485
|
case "IOT.SMARTPLUGSWITCH":
|
|
485
486
|
case "SMART.TAPOPLUG": {
|
|
486
|
-
if (config.types && config.types
|
|
487
|
+
if (config.types && !config.types.includes(import_lumia_rgb_types.ILumiaDeviceType.PLUG)) {
|
|
487
488
|
return;
|
|
488
489
|
}
|
|
489
490
|
const isTapo = deviceInfo.deviceType === "SMART.TAPOPLUG";
|
package/dist/index.mjs
CHANGED
|
@@ -420,10 +420,11 @@ var discover = (config) => __async(void 0, null, function* () {
|
|
|
420
420
|
return;
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
+
console.log("deviceInfo: ", deviceInfo);
|
|
423
424
|
switch (deviceInfo.deviceType) {
|
|
424
425
|
case "IOT.SMARTBULB":
|
|
425
426
|
case "SMART.TAPOBULB": {
|
|
426
|
-
if (config.types && config.types
|
|
427
|
+
if (config.types && !config.types.includes(ILumiaDeviceType.LIGHT)) {
|
|
427
428
|
return;
|
|
428
429
|
}
|
|
429
430
|
const isTapo = deviceInfo.deviceType === "SMART.TAPOBULB";
|
|
@@ -451,7 +452,7 @@ var discover = (config) => __async(void 0, null, function* () {
|
|
|
451
452
|
}
|
|
452
453
|
case "IOT.SMARTPLUGSWITCH":
|
|
453
454
|
case "SMART.TAPOPLUG": {
|
|
454
|
-
if (config.types && config.types
|
|
455
|
+
if (config.types && !config.types.includes(ILumiaDeviceType.PLUG)) {
|
|
455
456
|
return;
|
|
456
457
|
}
|
|
457
458
|
const isTapo = deviceInfo.deviceType === "SMART.TAPOPLUG";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumiastream/tapo-cove",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "GPL",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"lint": "tsc"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@lumiastream/fetch-cove": "^3.0.
|
|
15
|
-
"@lumiastream/lumia-rgb-types": "^3.0.
|
|
16
|
-
"@lumiastream/lumia-rgb-utils": "^3.0.
|
|
14
|
+
"@lumiastream/fetch-cove": "^3.0.9",
|
|
15
|
+
"@lumiastream/lumia-rgb-types": "^3.0.9",
|
|
16
|
+
"@lumiastream/lumia-rgb-utils": "^3.0.9",
|
|
17
17
|
"axios": "*",
|
|
18
18
|
"local-devices": "^4.0.0"
|
|
19
19
|
},
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"tsup": "*",
|
|
24
24
|
"typescript": "*"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "f32d2369c078c6edaa2b961ca166bbd074ef2763"
|
|
27
27
|
}
|