From 6bc1a1f00468c8a862df18ee162e9c7d013b540c Mon Sep 17 00:00:00 2001 From: Seth Terashima Date: Wed, 13 Dec 2023 13:45:56 -0800 Subject: [PATCH] tesla-control: Fix wakeup over BLE The wake command requires authentication over BLE, but not over Fleet API. This commit adds special logic to tesla-control to handle this. --- cmd/tesla-control/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/tesla-control/commands.go b/cmd/tesla-control/commands.go index 7123fa56..db620aa0 100644 --- a/cmd/tesla-control/commands.go +++ b/cmd/tesla-control/commands.go @@ -42,7 +42,7 @@ func configureFlags(c *cli.Config, commandName string, forceBLE bool) error { return ErrUnknownCommand } c.Flags = cli.FlagBLE - if info.requiresAuth { + if (forceBLE && commandName == "wake") || info.requiresAuth { c.Flags |= cli.FlagPrivateKey | cli.FlagVIN } if !info.requiresFleetAPI {