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.
- {petsafe_api-3.1.0 → petsafe_api-3.1.1}/PKG-INFO +1 -1
- {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe/local.py +2 -2
- {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe_api.egg-info/PKG-INFO +1 -1
- {petsafe_api-3.1.0 → petsafe_api-3.1.1}/setup.py +1 -1
- {petsafe_api-3.1.0 → petsafe_api-3.1.1}/tests/test_local.py +1 -1
- {petsafe_api-3.1.0 → petsafe_api-3.1.1}/LICENSE +0 -0
- {petsafe_api-3.1.0 → petsafe_api-3.1.1}/README.md +0 -0
- {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe/__init__.py +0 -0
- {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe/__main__.py +0 -0
- {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe/client.py +0 -0
- {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe/const.py +0 -0
- {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe/devices.py +0 -0
- {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe/general.py +0 -0
- {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe/pets.py +0 -0
- {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe/provisioning.py +0 -0
- {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe/setup.py +0 -0
- {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe_api.egg-info/SOURCES.txt +0 -0
- {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe_api.egg-info/dependency_links.txt +0 -0
- {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe_api.egg-info/requires.txt +0 -0
- {petsafe_api-3.1.0 → petsafe_api-3.1.1}/petsafe_api.egg-info/top_level.txt +0 -0
- {petsafe_api-3.1.0 → petsafe_api-3.1.1}/setup.cfg +0 -0
- {petsafe_api-3.1.0 → petsafe_api-3.1.1}/tests/test_provisioning.py +0 -0
- {petsafe_api-3.1.0 → petsafe_api-3.1.1}/tests/test_setup.py +0 -0
- {petsafe_api-3.1.0 → petsafe_api-3.1.1}/tests/test_smartdoor_modes.py +0 -0
- {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.
|
|
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=
|
|
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=
|
|
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.
|
|
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
|
|
@@ -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":
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|