From 0f970c2732cc2a514de3c33e497cbc6aa17ae99b Mon Sep 17 00:00:00 2001 From: Sam Lewis Date: Wed, 9 Nov 2022 21:03:57 -0500 Subject: [PATCH] fix runonstartup bug --- app.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.go b/app.go index e6f1ee6..71ef6cb 100644 --- a/app.go +++ b/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,