Skip to content

Commit 281db4f

Browse files
committed
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.
1 parent 609c92c commit 281db4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/tesla-control/commands.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func configureFlags(c *cli.Config, commandName string, forceBLE bool) error {
4242
return ErrUnknownCommand
4343
}
4444
c.Flags = cli.FlagBLE
45-
if info.requiresAuth {
45+
if (forceBLE && commandName == "wake") || info.requiresAuth {
4646
c.Flags |= cli.FlagPrivateKey | cli.FlagVIN
4747
}
4848
if !info.requiresFleetAPI {

0 commit comments

Comments
 (0)