unifi-protect: add lpr

This commit is contained in:
Koushik Dutta
2024-04-17 22:35:49 -07:00
parent 8d47e9c473
commit 3e7535cc42
3 changed files with 4 additions and 3 deletions

View File

@@ -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",

View File

@@ -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",

View File

@@ -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 {