mirror of
https://github.com/koush/scrypted.git
synced 2026-09-17 17:20:39 +01:00
unifi-protect: add lpr
This commit is contained in:
4
plugins/unifi-protect/package-lock.json
generated
4
plugins/unifi-protect/package-lock.json
generated
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user