mirror of
https://github.com/koush/scrypted.git
synced 2026-06-10 21:00:31 +01:00
unifi-protect: filter out unadopted cams
This commit is contained in:
2
plugins/unifi-protect/.vscode/settings.json
vendored
2
plugins/unifi-protect/.vscode/settings.json
vendored
@@ -1,4 +1,4 @@
|
||||
|
||||
{
|
||||
"scrypted.debugHost": "127.0.0.1",
|
||||
"scrypted.debugHost": "scrypted-nvr",
|
||||
}
|
||||
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.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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user