chore: simplify

This commit is contained in:
andig 2024-07-17 11:51:29 +02:00
parent 94f27d4b50
commit 971f2b5f1e

View file

@ -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)
}