Shelly: set gen2 default scheme to http (#1696)
This commit is contained in:
parent
8690f5b691
commit
13ddd6505e
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ func NewShelly(uri, user, password string, channel int, standbypower float64) (*
|
|||
case 2:
|
||||
// Shelly GEN 2 API
|
||||
// https://shelly-api-docs.shelly.cloud/gen2/
|
||||
c.uri = fmt.Sprintf("%s/rpc", util.DefaultScheme(uri, "https"))
|
||||
c.uri = fmt.Sprintf("%s/rpc", util.DefaultScheme(uri, "http"))
|
||||
if user != "" {
|
||||
c.Client.Transport = digest.NewTransport(user, password, c.Client.Transport)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue