Fixe env check (#11839)

This commit is contained in:
Michael Geers 2024-01-24 12:31:48 +01:00 • committed by GitHub
parent fd33a0d925
commit c562c194bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,7 +25,7 @@ func init() {
if secret := os.Getenv("TESLA_CLIENT_SECRET"); secret != "" {
vc.OAuth2Config.ClientSecret = secret
}
if vc.OAuth2Config.ClientID == "" {
if vc.OAuth2Config.ClientID != "" {
registry.Add("tesla-command", NewTeslaCommandFromConfig)
}
}