@apocaliss92/scrypted-reolink-native 0.1.27 → 0.1.28
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/main.nodejs.js +1 -1
- package/dist/plugin.zip +0 -0
- package/package.json +1 -1
- package/src/multiFocal.ts +7 -0
package/dist/plugin.zip
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/multiFocal.ts
CHANGED
|
@@ -216,6 +216,11 @@ export class ReolinkNativeMultiFocalDevice extends CommonCameraMixin implements
|
|
|
216
216
|
|
|
217
217
|
const camera = await this.getDevice(nativeId);
|
|
218
218
|
|
|
219
|
+
if (!camera) {
|
|
220
|
+
logger.error(`Failed to get device ${nativeId}`);
|
|
221
|
+
continue;
|
|
222
|
+
}
|
|
223
|
+
|
|
219
224
|
camera.storageSettings.values.rtspChannel = channel;
|
|
220
225
|
camera.classes = objects;
|
|
221
226
|
camera.presets = presets;
|
|
@@ -227,6 +232,8 @@ export class ReolinkNativeMultiFocalDevice extends CommonCameraMixin implements
|
|
|
227
232
|
camera.storageSettings.values.uid = uid;
|
|
228
233
|
}
|
|
229
234
|
}
|
|
235
|
+
|
|
236
|
+
await super.reportDevices();
|
|
230
237
|
}
|
|
231
238
|
|
|
232
239
|
async getDevice(nativeId: string) {
|