dummy-switch: further settings tweaks

This commit is contained in:
Koushik Dutta
2023-04-22 21:57:15 -07:00
parent 63dcd35b17
commit cdb87fb268
3 changed files with 5 additions and 5 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/dummy-switch",
"version": "0.0.21",
"version": "0.0.23",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/dummy-switch",
"version": "0.0.21",
"version": "0.0.23",
"dependencies": {
"@types/node": "^16.6.1",
"axios": "^1.3.6"

View File

@@ -38,5 +38,5 @@
"@scrypted/common": "file:../../common",
"@scrypted/sdk": "file:../../sdk"
},
"version": "0.0.21"
"version": "0.0.23"
}

View File

@@ -7,8 +7,8 @@ export const ReplaceBinarySensorNativeId = 'replaceBinarySensor';
class ReplaceBinarySensorMixin extends SettingsMixinDeviceBase<any> implements Settings {
storageSettings = new StorageSettings(this, {
replaceBinarySensor: {
title: 'Binary Sensor',
description: 'The binary sensor to attach to this camera or doorbell.',
title: 'Doorbell Button',
description: 'The binary sensor to attach to this camera.',
value: this.storage.getItem('replaceBinarySensor'),
deviceFilter: `interfaces.includes('${ScryptedInterface.BinarySensor}') && !interfaces.includes('@scrypted/dummy-switch:ReplaceBinarySensor') && id !== '${this.id}'`,
type: 'device',