mirror of
https://github.com/koush/scrypted.git
synced 2026-06-11 05:10:30 +01:00
unifi-protect: fingerprint sensor fixes
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.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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user