mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-07 13:15:19 -06:00
make some things private
This commit is contained in:
@@ -105,10 +105,10 @@ func callEventListeners(app *app, msg ws.ChanMsg) {
|
||||
|
||||
for _, l := range listeners {
|
||||
// Check conditions
|
||||
if c := CheckWithinTimeRange(l.betweenStart, l.betweenEnd); c.fail {
|
||||
if c := checkWithinTimeRange(l.betweenStart, l.betweenEnd); c.fail {
|
||||
return
|
||||
}
|
||||
if c := CheckThrottle(l.throttle, l.lastRan); c.fail {
|
||||
if c := checkThrottle(l.throttle, l.lastRan); c.fail {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user