Go-E: ensure default scheme

This commit is contained in:
andig 2021-10-28 12:27:21 +02:00
parent d6be9672f8
commit 1b358a89a8

View file

@ -74,7 +74,7 @@ func NewGoE(uri, token string, cache time.Duration) (api.Charger, error) {
if token != "" {
c.api = goe.NewCloud(log, token, cache)
} else {
c.api = goe.NewLocal(log, uri)
c.api = goe.NewLocal(log, util.DefaultScheme("http", uri))
}
if c.api.IsV2() {