tsvesync 1.4.9 → 1.4.10
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/vesync.js +7 -4
- package/package.json +1 -1
- package/src/lib/vesync.ts +7 -3
package/dist/lib/vesync.js
CHANGED
|
@@ -859,12 +859,15 @@ class VeSync {
|
|
|
859
859
|
for (const deviceList of Object.values(this._devList)) {
|
|
860
860
|
for (const device of deviceList) {
|
|
861
861
|
try {
|
|
862
|
-
if (
|
|
863
|
-
await device.getDetails();
|
|
864
|
-
}
|
|
865
|
-
else {
|
|
862
|
+
if (this.shouldExcludeDevice(device)) {
|
|
866
863
|
logger_1.logger.debug(`Skipping details update for excluded device: ${device.deviceName}`);
|
|
864
|
+
continue;
|
|
865
|
+
}
|
|
866
|
+
if (String(device.connectionStatus || '').toLowerCase() === 'offline') {
|
|
867
|
+
logger_1.logger.debug(`Skipping details update for offline device: ${device.deviceName}`);
|
|
868
|
+
continue;
|
|
867
869
|
}
|
|
870
|
+
await device.getDetails();
|
|
868
871
|
}
|
|
869
872
|
catch (error) {
|
|
870
873
|
logger_1.logger.error(`Error updating ${device.deviceName}:`, error);
|
package/package.json
CHANGED
package/src/lib/vesync.ts
CHANGED
|
@@ -1028,11 +1028,15 @@ export class VeSync {
|
|
|
1028
1028
|
for (const deviceList of Object.values(this._devList)) {
|
|
1029
1029
|
for (const device of deviceList) {
|
|
1030
1030
|
try {
|
|
1031
|
-
if (
|
|
1032
|
-
await device.getDetails();
|
|
1033
|
-
} else {
|
|
1031
|
+
if (this.shouldExcludeDevice(device)) {
|
|
1034
1032
|
logger.debug(`Skipping details update for excluded device: ${device.deviceName}`);
|
|
1033
|
+
continue;
|
|
1035
1034
|
}
|
|
1035
|
+
if (String(device.connectionStatus || '').toLowerCase() === 'offline') {
|
|
1036
|
+
logger.debug(`Skipping details update for offline device: ${device.deviceName}`);
|
|
1037
|
+
continue;
|
|
1038
|
+
}
|
|
1039
|
+
await device.getDetails();
|
|
1036
1040
|
} catch (error) {
|
|
1037
1041
|
logger.error(`Error updating ${device.deviceName}:`, error);
|
|
1038
1042
|
}
|