From be88afd68cb7269631c8bd634df7230014d39e3e Mon Sep 17 00:00:00 2001 From: Brandon McFarlin <6525520+Brandawg93@users.noreply.github.com> Date: Wed, 3 Mar 2021 13:40:57 -0500 Subject: [PATCH] fix model warning --- src/index.ts | 2 +- src/nest/models/camera.ts | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/index.ts b/src/index.ts index e661201f..8b7c5891 100755 --- a/src/index.ts +++ b/src/index.ts @@ -249,7 +249,7 @@ class NestCamPlatform implements DynamicPlatformPlugin { const accessory = new Accessory(displayName, uuid); accessory.context.cameraInfo = cameraInfo; - const model = cameraInfo.type < ModelTypes.length ? ModelTypes[cameraInfo.type] : 'Unknown'; + const model = cameraInfo.type < ModelTypes.length ? ModelTypes[cameraInfo.type] : 'Nest Camera'; const accessoryInformation = accessory.getService(hap.Service.AccessoryInformation); if (accessoryInformation) { accessoryInformation.setCharacteristic(hap.Characteristic.Manufacturer, 'Nest'); diff --git a/src/nest/models/camera.ts b/src/nest/models/camera.ts index 4a579545..3ee66f9b 100644 --- a/src/nest/models/camera.ts +++ b/src/nest/models/camera.ts @@ -21,14 +21,14 @@ export interface Zone { } export const ModelTypes = [ - '', - '', - '', - '', - '', - '', - '', - '', + 'Nest Camera', + 'Nest Camera', + 'Nest Camera', + 'Nest Camera', + 'Nest Camera', + 'Nest Camera', + 'Nest Camera', + 'Nest Camera', 'Nest Cam Indoor', 'Nest Cam Outdoor', 'Nest Cam IQ Indoor',