homebridge-securitysystem 9.1.1-beta.1 → 9.1.1-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,10 +22,10 @@ jobs:
22
22
 
23
23
  steps:
24
24
  - name: Checkout repository
25
- uses: actions/checkout@v5
25
+ uses: actions/checkout@v6
26
26
 
27
27
  - name: Setup node
28
- uses: actions/setup-node@v5
28
+ uses: actions/setup-node@v6
29
29
 
30
30
  with:
31
31
  cache: "npm"
@@ -27,10 +27,10 @@ jobs:
27
27
 
28
28
  steps:
29
29
  - name: Checkout branch
30
- uses: actions/checkout@v5
30
+ uses: actions/checkout@v6
31
31
 
32
32
  - name: Setup node
33
- uses: actions/setup-node@v5
33
+ uses: actions/setup-node@v6
34
34
 
35
35
  - name: Get next version
36
36
  uses: MiguelRipoll23/get-next-version@v3.0.0
@@ -20,7 +20,7 @@ jobs:
20
20
  runs-on: ubuntu-latest
21
21
  steps:
22
22
  - name: Checkout Repository
23
- uses: actions/checkout@v5
23
+ uses: actions/checkout@v6
24
24
 
25
25
  - name: Review Dependencies
26
26
  uses: actions/dependency-review-action@v4
@@ -23,7 +23,7 @@ jobs:
23
23
 
24
24
  steps:
25
25
  - name: Checkout branch
26
- uses: actions/checkout@v5
26
+ uses: actions/checkout@v6
27
27
 
28
28
  - name: Get tag name
29
29
  id: get-tag-name
@@ -66,10 +66,10 @@ jobs:
66
66
 
67
67
  steps:
68
68
  - name: Checkout branch
69
- uses: actions/checkout@v5
69
+ uses: actions/checkout@v6
70
70
 
71
71
  - name: Setup node
72
- uses: actions/setup-node@v5
72
+ uses: actions/setup-node@v6
73
73
 
74
74
  with:
75
75
  registry-url: https://registry.npmjs.org/
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-securitysystem",
3
3
  "displayName": "Homebridge Security System",
4
- "version": "9.1.1-beta.1",
4
+ "version": "9.1.1-beta.3",
5
5
  "description": "Homebridge plugin that creates a security system accessory that can be triggered by HomeKit sensors.",
6
6
  "main": "src/index.js",
7
7
  "scripts": {
@@ -37,7 +37,7 @@
37
37
  }
38
38
  ],
39
39
  "engines": {
40
- "node": "^18.15.0 || ^20.7.0 || ^22",
40
+ "node": "^18.15.0 || ^20.7.0 || ^22 || ^24",
41
41
  "homebridge": "^1.6.0 || ^2.0.0"
42
42
  },
43
43
  "dependencies": {
package/src/index.js CHANGED
@@ -1101,8 +1101,7 @@ SecuritySystem.prototype.updateTargetState = function (
1101
1101
  };
1102
1102
 
1103
1103
  SecuritySystem.prototype.getArmingSeconds = function (state) {
1104
- const targetState =
1105
- typeof state === "number" ? state : this.targetState;
1104
+ const targetState = typeof state === "number" ? state : this.targetState;
1106
1105
 
1107
1106
  let armSeconds = options.armSeconds;
1108
1107
 
@@ -1587,13 +1586,7 @@ SecuritySystem.prototype.startServer = async function () {
1587
1586
  }
1588
1587
 
1589
1588
  const state = Characteristic.SecuritySystemTargetState.DISARM;
1590
- const delay = this.getDelayParameter(req);
1591
- const result = this.updateTargetState(
1592
- state,
1593
- originTypes.EXTERNAL,
1594
- delay,
1595
- null
1596
- );
1589
+ const result = this.updateTargetState(state, originTypes.EXTERNAL, 0, null);
1597
1590
 
1598
1591
  this.sendResultResponse(res, result);
1599
1592
  });