mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-05 23:15:07 -06:00
add notify service
This commit is contained in:
4
app.go
4
app.go
@@ -3,6 +3,7 @@ package gomeassistant
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
@@ -164,6 +165,9 @@ func getSunriseSunset(a *App, sunrise bool, offset []DurationString) carbon.Carb
|
||||
}
|
||||
|
||||
func (a *App) Start() {
|
||||
log.Default().Println("Starting", a.schedules.Len(), "schedules")
|
||||
log.Default().Println("Starting", len(a.entityListeners), "entity listeners")
|
||||
log.Default().Println("Starting", len(a.eventListeners), "event listeners")
|
||||
// schedules
|
||||
go runSchedules(a)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user