func GetClients(ctx context.Context, u *unifi.Unifi) (float64, error) {
	sites, err := u.GetSites()
	if err != nil {
		return 0, fmt.Errorf("get sites: %w", err)
	}

	clients, err := u.GetClients(sites)
	if err != nil {
		return 0, fmt.Errorf("get clients: %w", err)
	}

	return float64(len(clients)), nil
}
// GetClients returns the numbers of clients tracked by this unifi.
GetClients returns the numbers of clients tracked by this unifi.
// GetClients returns the numbers of clients tracked by this unifi .
func GetClients(ctx context.Context, u *unifi.Unifi) (float64, error) {
	sites, err := u.GetSites()
	if err != nil {
		return 0, fmt.Errorf("get sites: %w", err)
	}
	clients, err := u.GetClients(sites)
	if err != nil {
		return 0, fmt.Errorf("get clients: %w", err)
	}
	return float64(len(clients)), nil
}
func GetClients ( ctx context . Context , u * unifi . Unifi ) ( float64 , error ) { sites , err := u . GetSites ( ) if err != nil { return 0 , fmt . Errorf ( " " , err ) } clients , err := u . GetClients ( sites ) if err != nil { return 0 , fmt . Errorf ( " " , err ) } return float64 ( len ( clients ) ) , nil }
GetClients returns the numbers of clients tracked by this unifi.
GetClients returns the numbers of clients tracked by this unifi .