Skip to content

Commit

Permalink
Append serial number to persistence filename to avoid conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelRipoll23 committed Nov 14, 2024
1 parent f6a85c0 commit 5bd8038
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,11 @@ SecuritySystem.prototype.getServices = function () {
};

SecuritySystem.prototype.load = async function () {
const serialNumber = options.serialNumber;
const fileName = `homebridge-securitysystem-${serialNumber}`;

const storageOptions = {
dir: path.join(storagePath, "homebridge-securitysystem"),
dir: path.join(storagePath, fileName),
};

await storage
Expand Down

0 comments on commit 5bd8038

Please sign in to comment.