mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-06 05:15:15 -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 {
|
if err != nil {
|
||||||
log.Default().Println("Failed to get entity state \"", eid, "\" during startup, skipping RunOnStartup")
|
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,
|
TriggerEntityId: eid,
|
||||||
FromState: entityState.State,
|
FromState: entityState.State,
|
||||||
FromAttributes: entityState.Attributes,
|
FromAttributes: entityState.Attributes,
|
||||||
|
|||||||
Reference in New Issue
Block a user