tsvesync 1.0.29 → 1.0.30
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/lib/helpers.js +1 -1
- package/dist/lib/vesyncOutlet.js +2 -2
- package/package.json +1 -1
- package/src/lib/helpers.ts +1 -1
- package/src/lib/vesyncOutlet.ts +2 -2
package/dist/lib/helpers.js
CHANGED
package/dist/lib/vesyncOutlet.js
CHANGED
|
@@ -52,7 +52,7 @@ class VeSyncOutlet extends vesyncBaseDevice_1.VeSyncBaseDevice {
|
|
|
52
52
|
};
|
|
53
53
|
let url;
|
|
54
54
|
if (this.deviceType === 'wifi-switch-1.3') {
|
|
55
|
-
url =
|
|
55
|
+
url = '/v1/device/' + this.cid + '/detail';
|
|
56
56
|
}
|
|
57
57
|
else if (this.deviceType.startsWith('ESO15')) {
|
|
58
58
|
url = '/outdoorsocket15a/v1/device/devicedetail';
|
|
@@ -73,7 +73,7 @@ class VeSyncOutlet extends vesyncBaseDevice_1.VeSyncBaseDevice {
|
|
|
73
73
|
}
|
|
74
74
|
// Handle error responses
|
|
75
75
|
if (response.error) {
|
|
76
|
-
logger_1.logger.
|
|
76
|
+
logger_1.logger.error(`[${this.deviceName}] Failed to get outlet details for ${url}: ${JSON.stringify(response)}`);
|
|
77
77
|
return false;
|
|
78
78
|
}
|
|
79
79
|
// Handle successful responses
|
package/package.json
CHANGED
package/src/lib/helpers.ts
CHANGED
package/src/lib/vesyncOutlet.ts
CHANGED
|
@@ -66,7 +66,7 @@ export abstract class VeSyncOutlet extends VeSyncBaseDevice {
|
|
|
66
66
|
|
|
67
67
|
let url: string;
|
|
68
68
|
if (this.deviceType === 'wifi-switch-1.3') {
|
|
69
|
-
url =
|
|
69
|
+
url = '/v1/device/' + this.cid + '/detail';
|
|
70
70
|
} else if (this.deviceType.startsWith('ESO15')) {
|
|
71
71
|
url = '/outdoorsocket15a/v1/device/devicedetail';
|
|
72
72
|
} else if (this.deviceType.startsWith('ESW15')) {
|
|
@@ -91,7 +91,7 @@ export abstract class VeSyncOutlet extends VeSyncBaseDevice {
|
|
|
91
91
|
|
|
92
92
|
// Handle error responses
|
|
93
93
|
if (response.error) {
|
|
94
|
-
logger.
|
|
94
|
+
logger.error(`[${this.deviceName}] Failed to get outlet details for ${url}: ${JSON.stringify(response)}`);
|
|
95
95
|
return false;
|
|
96
96
|
}
|
|
97
97
|
|