From ed55f74a8added772ecf7e031fb5fd54fdd1a542 Mon Sep 17 00:00:00 2001 From: Brandon McFarlin Date: Wed, 29 Jul 2020 12:31:57 -0400 Subject: [PATCH] fix config names --- config.schema.json | 12 ++++++------ package-lock.json | 2 +- package.json | 2 +- src/index.ts | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/config.schema.json b/config.schema.json index 47aa6da..10af0b6 100644 --- a/config.schema.json +++ b/config.schema.json @@ -72,12 +72,12 @@ "title": "Alert Type", "type": "string", "oneOf": [ - { "title": "Motion", "enum": ["motion"] }, - { "title": "Sound", "enum": ["sound"] }, - { "title": "Person", "enum": ["person"] }, - { "title": "Package Retrieved", "enum": ["package-retrieved"] }, - { "title": "Package Delivered", "enum": ["package-delivered"] }, - { "title": "Face", "enum": ["face"] } + { "title": "Motion", "enum": ["Motion"] }, + { "title": "Sound", "enum": ["Sound"] }, + { "title": "Person", "enum": ["Person"] }, + { "title": "Package Retrieved", "enum": ["Package Retrieved"] }, + { "title": "Package Delivered", "enum": ["Package Delivered"] }, + { "title": "Face", "enum": ["Face"] } ] } }, diff --git a/package-lock.json b/package-lock.json index 2f7242e..fce57b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "homebridge-nest-cam", - "version": "4.0.0-test.5", + "version": "4.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 89647c4..d205837 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "displayName": "Homebridge Nest Cam", "name": "homebridge-nest-cam", - "version": "4.0.0-test.5", + "version": "4.0.0", "description": "Nest cam plugin for homebridge: https://homebridge.io/", "main": "dist/index.js", "license": "GPL-3.0", diff --git a/src/index.ts b/src/index.ts index 88e505c..911a3c5 100755 --- a/src/index.ts +++ b/src/index.ts @@ -40,7 +40,7 @@ class NestCamPlatform implements DynamicPlatformPlugin { private chimeSwitch = true; private audioSwitch = true; private structures: Array = []; - private alertTypes: Array = ['Motion', 'Sound', 'Person', 'Package Delivered', 'Package Retrieved', 'face']; + private alertTypes: Array = ['Motion', 'Sound', 'Person', 'Package Delivered', 'Package Retrieved', 'Face']; constructor(log: Logging, config: PlatformConfig, api: API) { this.log = log; @@ -331,8 +331,8 @@ class NestCamPlatform implements DynamicPlatformPlugin { // Motion configuration if (camera.info.full_camera_enabled) { if (camera.info.capabilities.includes('stranger_detection')) { - const useFaces = camera.alertTypes.includes('face'); - const index = camera.alertTypes.indexOf('face'); + const useFaces = camera.alertTypes.includes('Face'); + const index = camera.alertTypes.indexOf('Face'); if (index > -1) { camera.alertTypes.splice(index, 1); }