unifi-protect: use new isDoorbell flag

This commit is contained in:
Koushik Dutta
2023-07-18 12:24:54 -07:00
parent 0585e7bbaf
commit 28835b1ccc
4 changed files with 6 additions and 6 deletions

View File

@@ -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",

View File

@@ -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",

View File

@@ -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) {