homebridge-securitysystem 8.4.1 → 9.0.0-beta.1
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 +1 -1
- package/src/index.js +4 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-securitysystem",
|
|
3
3
|
"displayName": "Homebridge Security System",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "9.0.0-beta.1",
|
|
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": {
|
package/src/index.js
CHANGED
|
@@ -597,8 +597,11 @@ SecuritySystem.prototype.getServices = function () {
|
|
|
597
597
|
};
|
|
598
598
|
|
|
599
599
|
SecuritySystem.prototype.load = async function () {
|
|
600
|
+
const serialNumber = options.serialNumber;
|
|
601
|
+
const fileName = `homebridge-securitysystem-${serialNumber}`;
|
|
602
|
+
|
|
600
603
|
const storageOptions = {
|
|
601
|
-
dir: path.join(storagePath,
|
|
604
|
+
dir: path.join(storagePath, fileName),
|
|
602
605
|
};
|
|
603
606
|
|
|
604
607
|
await storage
|