Skip to content

Commit 9b1ece7

Browse files
committed
Code enhancements
### UPDATED - TypeScript declatration rule linting enhancements. ### ADDED - Security panel note for "SILENT PANIC ALARM".
1 parent 54e7e1a commit 9b1ece7

File tree

5 files changed

+13
-1
lines changed

5 files changed

+13
-1
lines changed

eslint.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,15 @@ const eslintConfig = [
138138
'no-unused-vars': ['off'],
139139
},
140140
},
141+
{
142+
name: 'typescript-declaration-rules',
143+
files: [
144+
'**/*.d.ts',
145+
],
146+
rules: {
147+
'no-var': ['off'],
148+
},
149+
},
141150
];
142151

143152
export default eslintConfig;

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.4.7",
4+
"version": "3.4.8",
55
"description": "Homebridge security system platform for ADT Pulse",
66
"main": "./build/index.js",
77
"exports": "./build/index.js",

src/lib/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,6 +1410,7 @@ export class ADTPulseAPI {
14101410
* 'WATER ALARM'
14111411
*
14121412
* note: 'EXIT FAULT ALARM'
1413+
* 'SILENT PANIC ALARM'
14131414
* 'This may take several minutes'
14141415
*
14151416
* @since 1.0.0

src/lib/items.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,7 @@ export const itemPanelInformationStatuses: ItemPanelInformationStatuses = [
640640
*/
641641
export const itemPanelStatusNotes: ItemPanelStatusNotes = [
642642
'EXIT FAULT ALARM',
643+
'SILENT PANIC ALARM',
643644
'This may take several minutes',
644645
];
645646

src/types/constant.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ export type PortalPanelForceArmButtonRelativeUrl =
235235
*/
236236
export type PortalPanelNote =
237237
'EXIT FAULT ALARM'
238+
| 'SILENT PANIC ALARM'
238239
| 'This may take several minutes';
239240

240241
/**

0 commit comments

Comments
 (0)