Skip to content

Commit

Permalink
Only enable discovery if monitoring is also enabled #82
Browse files Browse the repository at this point in the history
  • Loading branch information
Achronite committed Feb 18, 2024
1 parent 3206da6 commit 25e0465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Expand Up @@ -116,7 +116,7 @@ client.on('connect',function(){
publishBoardState('discover', 0); // reset to 0 discovered devices

// Enable Periodic MQTT discovery at 1 min, and then every 10 minutes
if (CONFIG.discovery_prefix) {
if (CONFIG.monitoring && CONFIG.discovery_prefix) {
discovery = true;

// Publish the parent 'board' discovery once on startup
Expand Down

0 comments on commit 25e0465

Please sign in to comment.