From ec755adbeb59baba8674b70b287497f9cfcdc5a5 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Tue, 22 Feb 2022 15:44:18 -0800 Subject: [PATCH] snapshot: enable plugin on doorbells too --- plugins/snapshot/package-lock.json | 4 ++-- plugins/snapshot/package.json | 2 +- plugins/snapshot/src/main.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/snapshot/package-lock.json b/plugins/snapshot/package-lock.json index 70d6b62b9..10bfb10f5 100644 --- a/plugins/snapshot/package-lock.json +++ b/plugins/snapshot/package-lock.json @@ -14,7 +14,7 @@ "@scrypted/common": "file:../../common", "@scrypted/sdk": "file:../../sdk" }, - "version": "0.0.2" + "version": "0.0.3" }, "../../common": { "name": "@scrypted/common", @@ -207,5 +207,5 @@ "integrity": "sha512-MQDfihBQYMcyy5dhRDJUHcw7lb2Pv/TuE6xP1vyraLukNDHKbDxDNaOE3NbCAdKQApno+GPRyo1YAp89yCjK4w==" } }, - "version": "0.0.2" + "version": "0.0.3" } diff --git a/plugins/snapshot/package.json b/plugins/snapshot/package.json index 5daca9dea..11a39a537 100644 --- a/plugins/snapshot/package.json +++ b/plugins/snapshot/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/snapshot", - "version": "0.0.2", + "version": "0.0.3", "description": "Snapshot Plugin for Scrypted", "scripts": { "prepublishOnly": "NODE_ENV=production scrypted-webpack", diff --git a/plugins/snapshot/src/main.ts b/plugins/snapshot/src/main.ts index 3dbae0d01..c9df96694 100644 --- a/plugins/snapshot/src/main.ts +++ b/plugins/snapshot/src/main.ts @@ -74,7 +74,7 @@ class SnapshotMixin extends SettingsMixinDeviceBase implements Camera { class SnapshotPlugin extends ScryptedDeviceBase implements MixinProvider { async canMixin(type: ScryptedDeviceType, interfaces: string[]): Promise { - if (type === ScryptedDeviceType.Camera && interfaces.includes(ScryptedInterface.VideoCamera)) + if ((type === ScryptedDeviceType.Camera || type === ScryptedDeviceType.Doorbell) && interfaces.includes(ScryptedInterface.VideoCamera)) return [ScryptedInterface.Camera, ScryptedInterface.Settings]; return undefined;