From 3e7535cc42fe92aa082d0fdaf022e56f3c869e09 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Wed, 17 Apr 2024 22:35:49 -0700 Subject: [PATCH] unifi-protect: add lpr --- plugins/unifi-protect/package-lock.json | 4 ++-- plugins/unifi-protect/package.json | 2 +- plugins/unifi-protect/src/main.ts | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/unifi-protect/package-lock.json b/plugins/unifi-protect/package-lock.json index 22ce2cf17..c3d848648 100644 --- a/plugins/unifi-protect/package-lock.json +++ b/plugins/unifi-protect/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/unifi-protect", - "version": "0.0.145", + "version": "0.0.146", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/unifi-protect", - "version": "0.0.145", + "version": "0.0.146", "license": "Apache", "dependencies": { "@koush/unifi-protect": "file:../../external/unifi-protect", diff --git a/plugins/unifi-protect/package.json b/plugins/unifi-protect/package.json index 41fb22cfe..e6a4f170d 100644 --- a/plugins/unifi-protect/package.json +++ b/plugins/unifi-protect/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/unifi-protect", - "version": "0.0.145", + "version": "0.0.146", "description": "Unifi Protect Plugin for Scrypted", "author": "Scrypted", "license": "Apache", diff --git a/plugins/unifi-protect/src/main.ts b/plugins/unifi-protect/src/main.ts index 58a146ccc..79129e8a2 100644 --- a/plugins/unifi-protect/src/main.ts +++ b/plugins/unifi-protect/src/main.ts @@ -188,6 +188,7 @@ export class UnifiProtect extends ScryptedDeviceBase implements Settings, Device detections = payload.smartDetectTypes.map(type => ({ className: type, score: payload.score, + label: (payload as any).metadata?.[type]?.name, })); } else {