@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/plugin.zip CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apocaliss92/scrypted-reolink-native",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "description": "Use any reolink camera with Scrypted, even older/unsupported models without HTTP protocol support",
5
5
  "author": "@apocaliss92",
6
6
  "license": "Apache",
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) {