|
|
@ -13,7 +13,6 @@ func noDevice(ctx context.Context, devices []tesla.Device) (d tesla.Device, pass |
|
|
|
func login(ctx context.Context, username string, password string) (string, error) { |
|
|
|
func login(ctx context.Context, username string, password string) (string, error) { |
|
|
|
client, err := tesla.NewClient( |
|
|
|
client, err := tesla.NewClient( |
|
|
|
ctx, |
|
|
|
ctx, |
|
|
|
tesla.WithMFAHandler(noDevice), |
|
|
|
|
|
|
|
tesla.WithCredentials(username, password), |
|
|
|
tesla.WithCredentials(username, password), |
|
|
|
) |
|
|
|
) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|