python-unifi-client 1.2.4__tar.gz → 1.2.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python_unifi_client
3
- Version: 1.2.4
3
+ Version: 1.2.6
4
4
  Home-page: https://github.com/compdat-llc/unifi-client-python
5
5
  Author: Michael Lapinski
6
6
  Author-email: michaellapinski787@gmail.com
@@ -384,7 +384,7 @@ class Client:
384
384
  return self.fetch_results(f"/api/s/{self._site}/rest/user/{user_id}")
385
385
 
386
386
  def get_client_by_mac(self, mac: str):
387
- return self.fetch_results(f"/api/s/{self._site}/stat/user/{mac}")
387
+ return self.fetch_results(f"/api/s/{self._site}/stat/user/{mac}", prefix_path=True)
388
388
 
389
389
  def update_user(self, user_id: str, name: str = None, note: str = None, is_guest: bool = None, is_wired: bool = None):
390
390
  """
@@ -755,7 +755,7 @@ class Client:
755
755
  return self.fetch_results(f"/api/s/{self._site}/stat/device", login_required=True, prefix_path=True)
756
756
 
757
757
  def get_device(self, device_id):
758
- return self.fetch_results(f"/api/s/{self._site}/stat/device/{device_id}")
758
+ return self.fetch_results(f"/api/s/{self._site}/stat/device/{device_id}", prefix_path=True)
759
759
 
760
760
  def get_wlan(self, wlan_id: str):
761
761
  """
@@ -1221,7 +1221,7 @@ class Client:
1221
1221
  """
1222
1222
  List all port configurations on the site.
1223
1223
  """
1224
- return self._request(f"/api/s/{self._site}/list/portconf")
1224
+ return self.fetch_results(f"/api/s/{self._site}/list/portconf", prefix_path=True)
1225
1225
 
1226
1226
  def get_portconf(self, portconf_id: str):
1227
1227
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python_unifi_client
3
- Version: 1.2.4
3
+ Version: 1.2.6
4
4
  Home-page: https://github.com/compdat-llc/unifi-client-python
5
5
  Author: Michael Lapinski
6
6
  Author-email: michaellapinski787@gmail.com
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setuptools.setup(
7
7
  name="python_unifi_client",
8
- version="1.2.4",
8
+ version="1.2.6",
9
9
  author="Michael Lapinski",
10
10
  author_email="michaellapinski787@gmail.com",
11
11
  descripton="A python version of a github Art-of-Wifi/Unifi-API-Client",