homekit: property detections renamed classes

This commit is contained in:
Koushik Dutta
2021-11-17 22:53:24 -08:00
parent ed9de9c2de
commit fbade6d595
3 changed files with 5 additions and 5 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/homekit",
"version": "0.0.126",
"version": "0.0.127",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/homekit",
"version": "0.0.126",
"version": "0.0.127",
"dependencies": {
"hap-nodejs": "file:../../external/HAP-NodeJS",
"lodash": "^4.17.21",

View File

@@ -40,5 +40,5 @@
"@types/qrcode": "^1.4.1",
"@types/url-parse": "^1.4.3"
},
"version": "0.0.126"
"version": "0.0.127"
}

View File

@@ -152,8 +152,8 @@ export class CameraMixin extends SettingsMixinDeviceBase<any> implements Setting
try {
const types = await realDevice.getObjectTypes();
const choices = types.people?.map(p => `Person: ${p.label}`) || [];
if (types.detections)
choices.push(...types.detections);
if (types.classes)
choices.push(...types.classes);
const value: string[] = [];
try {