From 654a8061917369a7b77a06a39612da53bcbd0327 Mon Sep 17 00:00:00 2001 From: appkins Date: Wed, 12 Feb 2025 20:58:35 -0600 Subject: [PATCH] Fix active clients --- unifi/active_clients.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {