unifi-protect: fingerprint sensor fixes

This commit is contained in:
Koushik Dutta
2024-11-07 09:23:23 -08:00
parent ab1cd379a9
commit 84bb7865fe
3 changed files with 6 additions and 4 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/unifi-protect",
"version": "0.0.157",
"version": "0.0.158",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/unifi-protect",
"version": "0.0.157",
"version": "0.0.158",
"license": "Apache",
"dependencies": {
"@koush/unifi-protect": "file:../../external/unifi-protect",

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/unifi-protect",
"version": "0.0.157",
"version": "0.0.158",
"description": "Unifi Protect Plugin for Scrypted",
"author": "Scrypted",
"license": "Apache",

View File

@@ -221,7 +221,9 @@ export class UnifiProtect extends ScryptedDeviceBase implements Settings, Device
debounceMotionDetected(unifiCamera);
}
else if (payload.type === 'fingerprintIdentified') {
debounceFingerprintDetected(unifiCamera);
if ((payload as any).metadata?.fingerprint?.userId) {
debounceFingerprintDetected(unifiCamera);
}
}
}