homebridge-securitysystem 9.1.1-beta.1 → 9.1.1-beta.2
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.
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.
|
|
4
|
+
"version": "9.1.1-beta.2",
|
|
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
|
|
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
|
});
|