Skip to content

Commit

Permalink
Fix mqtt status update
Browse files Browse the repository at this point in the history
  • Loading branch information
slyoldfox committed Apr 19, 2024
1 parent bf94ddc commit 7231801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mqtt.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class MQTT {
}

async #updateStatus() {
if( !config.mqtt_config.enabled || config.mqtt_config.host.length > 0 ) {
if( !(config.mqtt_config.enabled && config.mqtt_config.host.length > 0) ) {
return
}
let status = {}
Expand Down

0 comments on commit 7231801

Please sign in to comment.