mirror of
https://github.com/Xevion/go-ha.git
synced 2026-01-31 04:24:27 -06:00
some tweaks/renames, schedule documentation
This commit is contained in:
+2
-1
@@ -26,6 +26,7 @@ type EntityListener struct {
|
||||
exceptionRanges []timeRange
|
||||
}
|
||||
|
||||
// TODO: add state object as second arg
|
||||
type EntityListenerCallback func(*Service, EntityData)
|
||||
|
||||
type EntityData struct {
|
||||
@@ -60,7 +61,7 @@ type msgState struct {
|
||||
|
||||
/* Methods */
|
||||
|
||||
func EntityListenerBuilder() elBuilder1 {
|
||||
func NewEntityListener() elBuilder1 {
|
||||
return elBuilder1{EntityListener{
|
||||
lastRan: carbon.Now().StartOfCentury(),
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user