Skip to content

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 <[email protected]>
  • Loading branch information
robertsLando and chrisns authored 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
Original file line number Diff line number Diff line change
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.