chore: simplify
This commit is contained in:
parent
94f27d4b50
commit
971f2b5f1e
1 changed files with 1 additions and 2 deletions
|
|
@ -54,8 +54,7 @@ func NewJLRFromConfig(other map[string]interface{}) (api.Vehicle, error) {
|
|||
log := util.NewLogger("jlr").Redact(cc.User, cc.Password, cc.VIN, cc.DeviceID)
|
||||
|
||||
if cc.DeviceID == "" {
|
||||
uid := uuid.New()
|
||||
cc.DeviceID = uid.String()
|
||||
cc.DeviceID = uuid.NewString()
|
||||
log.WARN.Println("new device id generated, add `deviceid` to config:", cc.DeviceID)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue