diff --git a/unifi/active_clients.go b/unifi/active_clients.go index 7dea976..2f56b4c 100644 --- a/unifi/active_clients.go +++ b/unifi/active_clients.go @@ -119,8 +119,8 @@ type ActiveClient struct { type ActiveClients []ActiveClient -func (c *Client) ListActiveClients(ctx context.Context, site string) ([]APGroup, error) { - var respBody []APGroup +func (c *Client) ListActiveClients(ctx context.Context, site string) (ActiveClients, error) { + var respBody []ActiveClient err := c.do(ctx, "GET", fmt.Sprintf("%s/site/%s/clients/active?includeUnifiDevices=true", c.apiV2Path, site), nil, &respBody) if err != nil {