From 5d4789d98e51f2e87f0b53097d7874706a721605 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Tue, 13 Jul 2021 15:09:07 -0400 Subject: [PATCH] Why does Climate take so long??? --- main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index e7ec4f7..b632adb 100644 --- a/main.go +++ b/main.go @@ -4,6 +4,7 @@ import ( "fmt" "os" "strings" + "time" "github.com/bogosj/tesla" "github.com/therecipe/qt/widgets" @@ -277,7 +278,10 @@ func enableClimate(i int) { } else { vehicle.StopAirConditioning() } - go setValues() + go func() { + time.Sleep(1 * time.Minute) + setValues() + }() } func lockDoors(i int) {