Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Commit

Permalink
feat: OZW_NETWORK_KEY env var #680 (#725)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Nesbitt-Smith <chris@cns.me.uk>
  • Loading branch information
robertsLando and chrisns committed Sep 15, 2020
1 parent 0cc4fa7 commit 17119ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ZwaveClient.js
Expand Up @@ -151,6 +151,8 @@ async function init (cfg, socket) {
// SuppressValueRefresh: true,
}

cfg.networkKey = cfg.networkKey || process.env.OZW_NETWORK_KEY

if (cfg.networkKey) {
options.NetworkKey = cfg.networkKey.replace(/\s/g, '')
}
Expand Down

0 comments on commit 17119ed

Please sign in to comment.