Skip to content

Commit

Permalink
only calls jeedom if enabled and has a cmd id
Browse files Browse the repository at this point in the history
  • Loading branch information
mch1307 committed Nov 6, 2017
1 parent 33651d3 commit 3cd930a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/nhc.go
Expand Up @@ -161,7 +161,7 @@ func Route(msg *types.Message) {
res := db.ProcessNHCEvent(rec)
var updatedItem types.NHCItem
_ = json.Unmarshal(res, &updatedItem)
if config.Conf.JeedomConfig.Enabled {
if config.Conf.JeedomConfig.Enabled && updatedItem.JeedomUpdState != "" {
go UpdateJeedomState(updatedItem)
}
WSPool.Broadcast <- res
Expand Down

0 comments on commit 3cd930a

Please sign in to comment.