We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6fbedd commit e06c729Copy full SHA for e06c729
internal/mqtt/trigger.go
@@ -47,7 +47,7 @@ func (t *Trigger) Initialise(subscribeQOS, publishQOS byte, triggerConfigs []con
47
t.triggerConfigs = triggerConfigs //safe the configs so that we can unsubscribe later (see Close func)
48
49
for _, triggerConf := range triggerConfigs {
50
- t.subscriptions[triggerConf.Topic] = subscription{
+ t.subscriptions[triggerConf.Name] = subscription{
51
trigger: triggerConf,
52
handler: t.createTriggerHandler(triggerConf),
53
}
0 commit comments