Unifi-Python-API
Unifi-Python-API copied to clipboard
Wrong format in list_clients function
r = self._session.get("{}/api/s/{}/stat/sta".format(self._baseurl, self._site, verify=self._verify_ssl), data="json={}")
should be
r = self._session.get("{}/api/s/{}/stat/sta".format(self._baseurl, self._site), verify=self._verify_ssl, data="json={}")
For description:
with the format function you can define what should be filled inside the curly brackets. the url has two defined curly brackets, but inside format you have defined 3 parameters and the verfiy is part of the request method :-)