Python-Unifi-Client 1.1.2__tar.gz → 1.1.3__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.1.2
3
+ Version: 1.1.3
4
4
  Home-page: https://github.com/compdat-llc/unifi-client-python
5
5
  Author: Michael Lapinski
6
6
  Author-email: michaellapinski787@gmail.com
@@ -10,10 +10,6 @@ import http.client as http_client
10
10
  import logging
11
11
  import base64
12
12
 
13
- logging.basicConfig(level=logging.DEBUG)
14
- logging.getLogger('requests.packages.urllib3').setLevel(logging.DEBUG)
15
- http_client.HTTPConnection.debuglevel = 1
16
-
17
13
  # Custom exceptions mirroring PHP equivalents
18
14
  class CurlExtensionNotLoadedException(Exception):
19
15
  def __init__(self):
@@ -1835,7 +1831,7 @@ class Client:
1835
1831
  """Generate a controller backup for the past N days."""
1836
1832
  payload = {'cmd': 'backup', 'days': days}
1837
1833
  result = self.fetch_results(f"/proxy/network/api/s/{self._site}/cmd/backup", payload=payload, prefix_path=False, boolean=False)
1838
- print(f"RAW RESULT FROM FETCH_RESULTS(): {result}")
1834
+ print(f"RAW RESULT FROM FETCH_RESULTS(): {result}") if self.debug else None
1839
1835
  return result
1840
1836
 
1841
1837
  def download_backup(self, filepath: str):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python_unifi_client
3
- Version: 1.1.2
3
+ Version: 1.1.3
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.1.2",
8
+ version="1.1.3",
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",