mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-06 03:15:14 -06:00
continue instead of return
This commit is contained in:
@@ -146,9 +146,9 @@ Event listeners have other functions to change the behavior.
|
||||
| Function | Info |
|
||||
| --------------------------------------- | ----------------------------------------------------------------------------------- |
|
||||
| Throttle("30s") | Minimum time between function calls. |
|
||||
| OnlyAfter("03:00") | Only run your function after a specified time of day. |
|
||||
| OnlyBefore("03:00") | Only run your function before a specified time of day. |
|
||||
| OnlyBetween("03:00", "14:00") | Only run your function between two specified times of day. |
|
||||
| OnlyAfter("03:00") | Only run after a specified time of day. |
|
||||
| OnlyBefore("03:00") | Only run before a specified time of day. |
|
||||
| OnlyBetween("03:00", "14:00") | Only run between two specified times of day. |
|
||||
| ExceptionDates(time.Time, ...time.Time) | A one time exception on the given date. Time is ignored, applies to whole day. |
|
||||
| ExceptionRange(time.Time, time.Time) | A one time exception between the two date/times. Both date and time are considered. |
|
||||
|
||||
|
||||
@@ -210,7 +210,7 @@ func callEntityListeners(app *App, msgBytes []byte) {
|
||||
go l.callback(app.service, app.state, entityData)
|
||||
l.lastRan = carbon.Now()
|
||||
})
|
||||
return
|
||||
continue
|
||||
}
|
||||
|
||||
// run now if no delay set
|
||||
|
||||
Reference in New Issue
Block a user