Fixe env check (#11839)
This commit is contained in:
parent
fd33a0d925
commit
c562c194bf
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue