Skip to content

Commit

Permalink
videoanalysis: fix settings crash
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Nov 15, 2023
1 parent 4989aa6 commit 4726630
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions plugins/objectdetector/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/objectdetector/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scrypted/objectdetector",
"version": "0.1.3",
"version": "0.1.5",
"description": "Scrypted Video Analysis Plugin. Installed alongside a detection service like OpenCV or TensorFlow.",
"author": "Scrypted",
"license": "Apache-2.0",
Expand Down
9 changes: 7 additions & 2 deletions plugins/objectdetector/src/smart-motionsensor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,13 @@ export class SmartMotionSensor extends ScryptedDeviceBase implements Settings, R
};
};

this.storageSettings.settings.detections.onPut = () => this.rebind();
this.storageSettings.settings.objectDetector.onPut = () => this.rebind();
this.storageSettings.settings.detections.onPut = () => {
this.rebind();
};

this.storageSettings.settings.objectDetector.onPut = () => {
this.rebind();
};

this.rebind();
}
Expand Down

0 comments on commit 4726630

Please sign in to comment.