mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-06 09:15:12 -06:00
SetupConnection(): remove excess slash in URI
The extra slash was added (presumably by accident) in https://github.com/saml-dev/gome-assistant/pull/17.
This commit is contained in:
@@ -50,7 +50,7 @@ func ReadMessage(conn *websocket.Conn, ctx context.Context) ([]byte, error) {
|
||||
}
|
||||
|
||||
func SetupConnection(ip, port, authToken string) (*websocket.Conn, context.Context, context.CancelFunc, error) {
|
||||
uri := fmt.Sprintf("ws:///%s:%s/api/websocket", ip, port)
|
||||
uri := fmt.Sprintf("ws://%s:%s/api/websocket", ip, port)
|
||||
return ConnectionFromUri(uri, authToken)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user