mirror of
https://github.com/koush/scrypted.git
synced 2026-02-03 06:03:27 +00:00
unifi-protect: use new isDoorbell flag
This commit is contained in:
2
external/unifi-protect
vendored
2
external/unifi-protect
vendored
Submodule external/unifi-protect updated: 1f40c63e7f...3759ba334f
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.134",
|
||||
"version": "0.0.135",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/unifi-protect",
|
||||
"version": "0.0.134",
|
||||
"version": "0.0.135",
|
||||
"license": "Apache",
|
||||
"dependencies": {
|
||||
"@koush/unifi-protect": "file:../../external/unifi-protect",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@scrypted/unifi-protect",
|
||||
"version": "0.0.134",
|
||||
"version": "0.0.135",
|
||||
"description": "Unifi Protect Plugin for Scrypted",
|
||||
"author": "Scrypted",
|
||||
"license": "Apache",
|
||||
|
||||
@@ -355,11 +355,11 @@ export class UnifiProtect extends ScryptedDeviceBase implements Settings, Device
|
||||
ScryptedInterface.VideoCameraConfiguration,
|
||||
ScryptedInterface.MotionSensor,
|
||||
],
|
||||
type: camera.featureFlags.hasChime
|
||||
type: camera.featureFlags.isDoorbell
|
||||
? ScryptedDeviceType.Doorbell
|
||||
: ScryptedDeviceType.Camera,
|
||||
};
|
||||
if (camera.featureFlags.hasChime) {
|
||||
if (camera.featureFlags.isDoorbell) {
|
||||
d.interfaces.push(ScryptedInterface.BinarySensor);
|
||||
}
|
||||
if (camera.featureFlags.hasSpeaker) {
|
||||
|
||||
Reference in New Issue
Block a user