Shelly: enable gen3 devices (#13057)
This commit is contained in:
parent
bdee2e5fa0
commit
8a30eb9639
1 changed files with 2 additions and 2 deletions
|
|
@ -63,8 +63,8 @@ func NewConnection(uri, user, password string, channel int) (*Connection, error)
|
|||
conn.Client.Transport = transport.BasicAuth(user, password, conn.Client.Transport)
|
||||
}
|
||||
|
||||
case 2:
|
||||
// Shelly GEN 2 API
|
||||
case 2, 3:
|
||||
// Shelly GEN 2+ API
|
||||
// https://shelly-api-docs.shelly.cloud/gen2/
|
||||
conn.uri = fmt.Sprintf("%s/rpc", util.DefaultScheme(uri, "http"))
|
||||
if user != "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue