petsafe-api 3.1.0__tar.gz → 3.1.1__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.
Files changed (25) hide show
  1. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/PKG-INFO +1 -1
  2. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe/local.py +2 -2
  3. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe_api.egg-info/PKG-INFO +1 -1
  4. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/setup.py +1 -1
  5. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/tests/test_local.py +1 -1
  6. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/LICENSE +0 -0
  7. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/README.md +0 -0
  8. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe/__init__.py +0 -0
  9. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe/__main__.py +0 -0
  10. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe/client.py +0 -0
  11. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe/const.py +0 -0
  12. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe/devices.py +0 -0
  13. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe/general.py +0 -0
  14. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe/pets.py +0 -0
  15. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe/provisioning.py +0 -0
  16. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe/setup.py +0 -0
  17. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe_api.egg-info/SOURCES.txt +0 -0
  18. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe_api.egg-info/dependency_links.txt +0 -0
  19. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe_api.egg-info/requires.txt +0 -0
  20. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe_api.egg-info/top_level.txt +0 -0
  21. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/setup.cfg +0 -0
  22. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/tests/test_provisioning.py +0 -0
  23. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/tests/test_setup.py +0 -0
  24. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/tests/test_smartdoor_modes.py +0 -0
  25. {petsafe_api-3.1.0 → petsafe_api-3.1.1}/tests/test_smartfeed_last_feeding.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: petsafe-api
3
- Version: 3.1.0
3
+ Version: 3.1.1
4
4
  Summary: Provides ability to connect and control a PetSafe Smart Feed, Scoopfree, and Smart Door devices using the PetSafe API.
5
5
  Home-page: https://github.com/ThomasHFWright/petsafe-api
6
6
  Author: Jordan Stremming & Dominick Meglio & Thomas Wright
@@ -33,7 +33,7 @@ class LocalPetSafeClient:
33
33
  self._base_url = str(url).rstrip("/") + "/local/"
34
34
  self._api_token = api_token
35
35
  self._owned = client is None
36
- self._client = client or httpx.AsyncClient(timeout=10, follow_redirects=False)
36
+ self._client = client or httpx.AsyncClient(timeout=30, follow_redirects=False)
37
37
 
38
38
  def __repr__(self) -> str:
39
39
  return f"{type(self).__name__}(server_url={self._base_url[:-7]!r})"
@@ -65,7 +65,7 @@ class LocalPetSafeClient:
65
65
  request = self._client.build_request(
66
66
  method, self._request_url(path),
67
67
  headers={"Authorization": f"Bearer {self._api_token}", "Accept": "application/json"},
68
- json=data, timeout=10,
68
+ json=data, timeout=30,
69
69
  )
70
70
  response = await self._client.send(request, stream=True, follow_redirects=False)
71
71
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: petsafe-api
3
- Version: 3.1.0
3
+ Version: 3.1.1
4
4
  Summary: Provides ability to connect and control a PetSafe Smart Feed, Scoopfree, and Smart Door devices using the PetSafe API.
5
5
  Home-page: https://github.com/ThomasHFWright/petsafe-api
6
6
  Author: Jordan Stremming & Dominick Meglio & Thomas Wright
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setuptools.setup(
7
7
  name="petsafe-api",
8
- version="3.1.0",
8
+ version="3.1.1",
9
9
  author="Jordan Stremming & Dominick Meglio & Thomas Wright",
10
10
  license="MIT",
11
11
  author_email="thomas.h.f.wright@gmail.com",
@@ -26,7 +26,7 @@ def test_routes_devices_pets_and_shared_client_lifecycle():
26
26
  requests.append(request)
27
27
  assert request.headers["authorization"] == f"Bearer {TOKEN}"
28
28
  assert request.extensions["timeout"] == {
29
- "connect": 10, "read": 10, "write": 10, "pool": 10,
29
+ "connect": 30, "read": 30, "write": 30, "pool": 30,
30
30
  }
31
31
  path = request.url.path
32
32
  if path == "/local/smartdoor/product/product":
File without changes
File without changes
File without changes
File without changes