make some things private

This commit is contained in:
Sam Lewis
2022-10-23 18:53:38 -04:00
parent f4d44cb6fe
commit e2fb6872ae
6 changed files with 18 additions and 14 deletions
+4 -4
View File
@@ -138,16 +138,16 @@ func callEntityListeners(app *app, msgBytes []byte) {
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 := CheckStatesMatch(l.fromState, data.OldState.State); c.fail {
if c := checkStatesMatch(l.fromState, data.OldState.State); c.fail {
return
}
if c := CheckStatesMatch(l.toState, data.NewState.State); c.fail {
if c := checkStatesMatch(l.toState, data.NewState.State); c.fail {
return
}
if c := CheckThrottle(l.throttle, l.lastRan); c.fail {
if c := checkThrottle(l.throttle, l.lastRan); c.fail {
return
}