Skip to content

Commit

Permalink
Nut small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kihamo committed Oct 15, 2019
1 parent 96484ef commit 0ef314d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/boggart/bind/nut/mqtt.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func (b *Bind) MQTTPublishes() []mqtt.Topic {

func (b *Bind) MQTTSubscribers() []mqtt.Subscriber {
return []mqtt.Subscriber{
mqtt.NewSubscriber(b.config.TopicVariable, 0, boggart.WrapMQTTSubscribeDeviceIsOnline(b.Status, func(_ context.Context, _ mqtt.Component, message mqtt.Message) error {
mqtt.NewSubscriber(b.config.TopicVariableSet, 0, boggart.WrapMQTTSubscribeDeviceIsOnline(b.Status, func(_ context.Context, _ mqtt.Component, message mqtt.Message) error {
if !boggart.CheckSerialNumberInMQTTTopic(b, message.Topic(), 4) {
return nil
}
Expand Down

0 comments on commit 0ef314d

Please sign in to comment.