Skip to content

Commit

Permalink
remote: allow API type and use ObjectDetection (#586)
Browse files Browse the repository at this point in the history
* include implementation from standalone repo

* simplify monkeypatching

* allow API types and use ObjectDetection interface
  • Loading branch information
bjia56 authored Feb 26, 2023
1 parent fa8b9df commit 18112ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/remote/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class ScryptedRemoteInstance extends ScryptedDeviceBase implements DeviceProvide
const allowedTypes = [
ScryptedDeviceType.Camera,
ScryptedDeviceType.DeviceProvider,
ScryptedDeviceType.API,
]
if (!allowedTypes.includes(device.type)) {
return null;
Expand All @@ -62,7 +63,7 @@ class ScryptedRemoteInstance extends ScryptedDeviceBase implements DeviceProvide
ScryptedInterface.MotionSensor,
ScryptedInterface.AudioSensor,
ScryptedInterface.DeviceProvider,
ScryptedInterface.ObjectDetector,
ScryptedInterface.ObjectDetection,
];
const intersection = allowedInterfaces.filter(i => device.interfaces.includes(i));
if (intersection.length == 0) {
Expand Down

0 comments on commit 18112ee

Please sign in to comment.