Allow promoting any vehicle config to cloud usage (#2549)

This commit is contained in:
andig 2022-02-11 08:45:02 +01:00 • committed by GitHub
parent ff193a6211
commit da94c8761f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 29 additions and 11 deletions

View file

@ -10,6 +10,7 @@ import (
"github.com/evcc-io/evcc/api"
"github.com/evcc-io/evcc/util"
"github.com/evcc-io/evcc/util/sponsor"
"github.com/evcc-io/evcc/vehicle"
)
@ -49,6 +50,10 @@ func main() {
case "action":
action = arg
key = ""
case "token":
sponsor.Subject = arg // TODO placeholder
sponsor.Token = arg
key = ""
default:
params[key] = arg
key = ""