Skip to content

Commit cbfdfda

Browse files
committed
Added new devices and fixed bugs
### FIXED - `removePersonalIdentifiableInformation` converted array of strings into an object of characters. ### ADDED - Compact SMA Protocol Gateway / Cellular mode. - Impassa SCW9057 Security Panel.
1 parent 6ae2a40 commit cbfdfda

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "homebridge-adt-pulse",
33
"displayName": "Homebridge ADT Pulse",
4-
"version": "3.1.4",
4+
"version": "3.1.5",
55
"description": "Homebridge security system platform for ADT Pulse",
66
"main": "./build/index.js",
77
"exports": "./build/index.js",

src/lib/items.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,16 @@ export const deviceGateways: DeviceGateways = [
270270
model: 'PGZNG1',
271271
primaryConnectionType: 'Broadband',
272272
},
273+
{
274+
broadbandConnectionStatus: null,
275+
cellularConnectionStatus: 'Active',
276+
cellularSignalStrength: 'N/A',
277+
firmwareVersion: '27.0.0-140',
278+
hardwareVersion: 'HW=02_CSMAP, BL=NA, PL=27.0.0-140',
279+
manufacturer: '',
280+
model: 'Compact SMA Protocol Gateway',
281+
primaryConnectionType: 'Cellular',
282+
},
273283
];
274284

275285
/**
@@ -288,6 +298,11 @@ export const deviceSecurityPanels: DeviceSecurityPanels = [
288298
manufacturerProvider: 'ADT',
289299
typeModel: 'Security Panel - Safewatch Pro 3000/3000CN',
290300
},
301+
{
302+
emergencyKeys: null,
303+
manufacturerProvider: 'DSC',
304+
typeModel: 'Security Panel - Impassa SCW9057',
305+
},
291306
];
292307

293308
/**

src/lib/utility.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,13 @@ export function removePersonalIdentifiableInformation(data: RemovePersonalIdenti
14181418
if (_.isPlainObject(value)) {
14191419
modifiedObject[key] = replaceValue(value as RemovePersonalIdentifiableInformationModifiedObject);
14201420
} else if (Array.isArray(value)) {
1421-
modifiedObject[key] = value.map(replaceValue);
1421+
modifiedObject[key] = value.map((item) => {
1422+
if (_.isPlainObject(item)) {
1423+
return replaceValue(item);
1424+
}
1425+
1426+
return item;
1427+
});
14221428
} else if (redactedKeys.includes(key)) {
14231429
modifiedObject[key] = '*** REDACTED FOR PRIVACY ***';
14241430
} else {

0 commit comments

Comments
 (0)