From 4452568058c8eed65c1cbc5388b0f5f0977d9e15 Mon Sep 17 00:00:00 2001 From: George Talusan Date: Wed, 26 Jun 2024 01:15:23 -0400 Subject: [PATCH] reolink: fix deviceprovider for cameras with siren (#1508) --- plugins/reolink/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/reolink/src/main.ts b/plugins/reolink/src/main.ts index 3775766676..509aea70f1 100644 --- a/plugins/reolink/src/main.ts +++ b/plugins/reolink/src/main.ts @@ -206,7 +206,7 @@ class ReolinkCamera extends RtspSmartCamera implements Camera, DeviceProvider, R if (this.storageSettings.values.hasObjectDetector) { interfaces.push(ScryptedInterface.ObjectDetector); } - if (this.storageSettings.values.abilities?.Ability?.supportAudioAlarm?.ver && this.storageSettings.values.abilities?.Ability?.supportAudioAlarm?.ver !== 0) { + if (this.storageSettings.values.abilities?.value?.Ability?.supportAudioAlarm?.ver && this.storageSettings.values.abilities?.value?.Ability?.supportAudioAlarm?.ver !== 0) { interfaces.push(ScryptedInterface.DeviceProvider); } await this.provider.updateDevice(this.nativeId, name, interfaces, type);