diff --git a/plugins/unifi-protect/.vscode/settings.json b/plugins/unifi-protect/.vscode/settings.json index 77ccdbd6db..a620593fa1 100644 --- a/plugins/unifi-protect/.vscode/settings.json +++ b/plugins/unifi-protect/.vscode/settings.json @@ -1,4 +1,4 @@ { - "scrypted.debugHost": "127.0.0.1", + "scrypted.debugHost": "scrypted-nvr", } \ No newline at end of file diff --git a/plugins/unifi-protect/package-lock.json b/plugins/unifi-protect/package-lock.json index 7bc078d1ee..424c704d73 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.154", + "version": "0.0.155", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/unifi-protect", - "version": "0.0.154", + "version": "0.0.155", "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 4fdf698f2d..0ed2eb7386 100644 --- a/plugins/unifi-protect/package.json +++ b/plugins/unifi-protect/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/unifi-protect", - "version": "0.0.154", + "version": "0.0.155", "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 74fdb50e5a..25ed0ee424 100644 --- a/plugins/unifi-protect/src/main.ts +++ b/plugins/unifi-protect/src/main.ts @@ -321,6 +321,10 @@ export class UnifiProtect extends ScryptedDeviceBase implements Settings, Device this.console.log('skipping camera that is adopted by another nvr', camera.id, camera.name); continue; } + if (!camera.isAdopted) { + this.console.log('skipping camera that is not adopted', camera.id, camera.name); + continue; + } let needUpdate = false; for (const channel of camera.channels) {