mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-05 23:15:07 -06:00
fix runonstartup bug
This commit is contained in:
3
app.go
3
app.go
@@ -197,7 +197,8 @@ func (a *App) Start() {
|
||||
if err != nil {
|
||||
log.Default().Println("Failed to get entity state \"", eid, "\" during startup, skipping RunOnStartup")
|
||||
}
|
||||
etl.callback(a.service, a.state, EntityData{
|
||||
etl.runOnStartupCompleted = true
|
||||
go etl.callback(a.service, a.state, EntityData{
|
||||
TriggerEntityId: eid,
|
||||
FromState: entityState.State,
|
||||
FromAttributes: entityState.Attributes,
|
||||
|
||||
Reference in New Issue
Block a user