@@ -22,131 +22,131 @@ func (b *Bind) Tasks() []workers.Task {
22
22
func (b * Bind ) taskUpdater (ctx context.Context ) (_ interface {}, err error ) {
23
23
times := b .Times ()
24
24
25
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicNadir , times .Nadir ); e != nil {
25
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicNadir , times .Nadir ); e != nil {
26
26
err = multierr .Append (err , e )
27
27
}
28
28
29
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicNightBeforeStart , times .NightBefore .Start ); e != nil {
29
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicNightBeforeStart , times .NightBefore .Start ); e != nil {
30
30
err = multierr .Append (err , e )
31
31
}
32
32
33
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicNightBeforeEnd , times .NightBefore .End ); e != nil {
33
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicNightBeforeEnd , times .NightBefore .End ); e != nil {
34
34
err = multierr .Append (err , e )
35
35
}
36
36
37
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicNightBeforeDuration , times .NightBefore .Duration ); e != nil {
37
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicNightBeforeDuration , times .NightBefore .Duration ); e != nil {
38
38
err = multierr .Append (err , e )
39
39
}
40
40
41
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicAstronomicalDawnStart , times .AstronomicalDawn .Start ); e != nil {
41
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicAstronomicalDawnStart , times .AstronomicalDawn .Start ); e != nil {
42
42
err = multierr .Append (err , e )
43
43
}
44
44
45
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicAstronomicalDawnEnd , times .AstronomicalDawn .End ); e != nil {
45
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicAstronomicalDawnEnd , times .AstronomicalDawn .End ); e != nil {
46
46
err = multierr .Append (err , e )
47
47
}
48
48
49
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicAstronomicalDawnDuration , times .AstronomicalDawn .Duration ); e != nil {
49
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicAstronomicalDawnDuration , times .AstronomicalDawn .Duration ); e != nil {
50
50
err = multierr .Append (err , e )
51
51
}
52
52
53
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicNauticalDawnStart , times .NauticalDawn .Start ); e != nil {
53
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicNauticalDawnStart , times .NauticalDawn .Start ); e != nil {
54
54
err = multierr .Append (err , e )
55
55
}
56
56
57
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicNauticalDawnEnd , times .NauticalDawn .End ); e != nil {
57
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicNauticalDawnEnd , times .NauticalDawn .End ); e != nil {
58
58
err = multierr .Append (err , e )
59
59
}
60
60
61
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicNauticalDawnDuration , times .NauticalDawn .Duration ); e != nil {
61
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicNauticalDawnDuration , times .NauticalDawn .Duration ); e != nil {
62
62
err = multierr .Append (err , e )
63
63
}
64
64
65
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicCivilDawnStart , times .CivilDawn .Start ); e != nil {
65
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicCivilDawnStart , times .CivilDawn .Start ); e != nil {
66
66
err = multierr .Append (err , e )
67
67
}
68
68
69
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicCivilDawnEnd , times .CivilDawn .End ); e != nil {
69
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicCivilDawnEnd , times .CivilDawn .End ); e != nil {
70
70
err = multierr .Append (err , e )
71
71
}
72
72
73
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicCivilDawnDuration , times .CivilDawn .Duration ); e != nil {
73
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicCivilDawnDuration , times .CivilDawn .Duration ); e != nil {
74
74
err = multierr .Append (err , e )
75
75
}
76
76
77
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicRiseStart , times .Sunrise .Start ); e != nil {
77
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicRiseStart , times .Sunrise .Start ); e != nil {
78
78
err = multierr .Append (err , e )
79
79
}
80
80
81
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicRiseEnd , times .Sunrise .End ); e != nil {
81
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicRiseEnd , times .Sunrise .End ); e != nil {
82
82
err = multierr .Append (err , e )
83
83
}
84
84
85
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicRiseDuration , times .Sunrise .Duration ); e != nil {
85
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicRiseDuration , times .Sunrise .Duration ); e != nil {
86
86
err = multierr .Append (err , e )
87
87
}
88
88
89
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicSolarNoon , times .SolarNoon ); e != nil {
89
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicSolarNoon , times .SolarNoon ); e != nil {
90
90
err = multierr .Append (err , e )
91
91
}
92
92
93
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicSetStart , times .Sunset .Start ); e != nil {
93
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicSetStart , times .Sunset .Start ); e != nil {
94
94
err = multierr .Append (err , e )
95
95
}
96
96
97
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicSetEnd , times .Sunset .Start ); e != nil {
97
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicSetEnd , times .Sunset .Start ); e != nil {
98
98
err = multierr .Append (err , e )
99
99
}
100
100
101
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicSetDuration , times .Sunset .Duration ); e != nil {
101
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicSetDuration , times .Sunset .Duration ); e != nil {
102
102
err = multierr .Append (err , e )
103
103
}
104
104
105
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicCivilDuskStart , times .CivilDusk .Start ); e != nil {
105
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicCivilDuskStart , times .CivilDusk .Start ); e != nil {
106
106
err = multierr .Append (err , e )
107
107
}
108
108
109
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicCivilDuskEnd , times .CivilDusk .Start ); e != nil {
109
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicCivilDuskEnd , times .CivilDusk .Start ); e != nil {
110
110
err = multierr .Append (err , e )
111
111
}
112
112
113
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicCivilDuskDuration , times .CivilDusk .Duration ); e != nil {
113
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicCivilDuskDuration , times .CivilDusk .Duration ); e != nil {
114
114
err = multierr .Append (err , e )
115
115
}
116
116
117
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicNauticalDuskStart , times .NauticalDusk .Start ); e != nil {
117
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicNauticalDuskStart , times .NauticalDusk .Start ); e != nil {
118
118
err = multierr .Append (err , e )
119
119
}
120
120
121
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicNauticalDuskEnd , times .NauticalDusk .Start ); e != nil {
121
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicNauticalDuskEnd , times .NauticalDusk .Start ); e != nil {
122
122
err = multierr .Append (err , e )
123
123
}
124
124
125
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicNauticalDuskDuration , times .NauticalDusk .Duration ); e != nil {
125
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicNauticalDuskDuration , times .NauticalDusk .Duration ); e != nil {
126
126
err = multierr .Append (err , e )
127
127
}
128
128
129
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicAstronomicalDuskStart , times .AstronomicalDusk .Start ); e != nil {
129
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicAstronomicalDuskStart , times .AstronomicalDusk .Start ); e != nil {
130
130
err = multierr .Append (err , e )
131
131
}
132
132
133
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicAstronomicalDuskEnd , times .AstronomicalDusk .Start ); e != nil {
133
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicAstronomicalDuskEnd , times .AstronomicalDusk .Start ); e != nil {
134
134
err = multierr .Append (err , e )
135
135
}
136
136
137
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicAstronomicalDuskDuration , times .AstronomicalDusk .Duration ); e != nil {
137
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicAstronomicalDuskDuration , times .AstronomicalDusk .Duration ); e != nil {
138
138
err = multierr .Append (err , e )
139
139
}
140
140
141
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicNightAfterStart , times .NightAfter .Start ); e != nil {
141
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicNightAfterStart , times .NightAfter .Start ); e != nil {
142
142
err = multierr .Append (err , e )
143
143
}
144
144
145
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicNightAfterEnd , times .NightAfter .End ); e != nil {
145
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicNightAfterEnd , times .NightAfter .End ); e != nil {
146
146
err = multierr .Append (err , e )
147
147
}
148
148
149
- if e := b .MQTTContainer ().PublishAsync (ctx , b .config .TopicNightAfterDuration , times .NightAfter .Duration ); e != nil {
149
+ if e := b .MQTT ().PublishAsync (ctx , b .config .TopicNightAfterDuration , times .NightAfter .Duration ); e != nil {
150
150
err = multierr .Append (err , e )
151
151
}
152
152
0 commit comments