python-unifi-client 1.2.3__tar.gz → 1.2.5__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.3
3
+ Version: 1.2.5
4
4
  Home-page: https://github.com/compdat-llc/unifi-client-python
5
5
  Author: Michael Lapinski
6
6
  Author-email: michaellapinski787@gmail.com
@@ -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
  """
@@ -2445,9 +2445,9 @@ class Client:
2445
2445
 
2446
2446
  # force POST if GET or DELETE
2447
2447
 
2448
- #if self._curl_method in ('GET', 'DELETE'):
2449
- # self._curl_method = 'POST'
2450
- # opts['method'] = 'POST'
2448
+ if self._curl_method in ('GET', 'DELETE'):
2449
+ self._curl_method = 'POST'
2450
+ opts['method'] = 'POST'
2451
2451
 
2452
2452
 
2453
2453
  # 5) set custom method flags
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python_unifi_client
3
- Version: 1.2.3
3
+ Version: 1.2.5
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.3",
8
+ version="1.2.5",
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",