pypetkitapi 1.7.1__tar.gz → 1.7.4__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.
- {pypetkitapi-1.7.1 → pypetkitapi-1.7.4}/PKG-INFO +3 -2
- {pypetkitapi-1.7.1 → pypetkitapi-1.7.4}/pypetkitapi/client.py +4 -0
- {pypetkitapi-1.7.1 → pypetkitapi-1.7.4}/pypetkitapi/water_fountain_container.py +5 -3
- {pypetkitapi-1.7.1 → pypetkitapi-1.7.4}/pyproject.toml +4 -3
- {pypetkitapi-1.7.1 → pypetkitapi-1.7.4}/LICENSE +0 -0
- {pypetkitapi-1.7.1 → pypetkitapi-1.7.4}/README.md +0 -0
- {pypetkitapi-1.7.1 → pypetkitapi-1.7.4}/pypetkitapi/__init__.py +0 -0
- {pypetkitapi-1.7.1 → pypetkitapi-1.7.4}/pypetkitapi/command.py +0 -0
- {pypetkitapi-1.7.1 → pypetkitapi-1.7.4}/pypetkitapi/const.py +0 -0
- {pypetkitapi-1.7.1 → pypetkitapi-1.7.4}/pypetkitapi/containers.py +0 -0
- {pypetkitapi-1.7.1 → pypetkitapi-1.7.4}/pypetkitapi/exceptions.py +0 -0
- {pypetkitapi-1.7.1 → pypetkitapi-1.7.4}/pypetkitapi/feeder_container.py +0 -0
- {pypetkitapi-1.7.1 → pypetkitapi-1.7.4}/pypetkitapi/litter_container.py +0 -0
- {pypetkitapi-1.7.1 → pypetkitapi-1.7.4}/pypetkitapi/medias.py +0 -0
- {pypetkitapi-1.7.1 → pypetkitapi-1.7.4}/pypetkitapi/py.typed +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pypetkitapi
|
3
|
-
Version: 1.7.
|
3
|
+
Version: 1.7.4
|
4
4
|
Summary: Python client for PetKit API
|
5
5
|
Home-page: https://github.com/Jezza34000/pypetkit
|
6
6
|
License: MIT
|
@@ -12,7 +12,8 @@ Classifier: Programming Language :: Python :: 3
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.11
|
13
13
|
Classifier: Programming Language :: Python :: 3.12
|
14
14
|
Classifier: Programming Language :: Python :: 3.13
|
15
|
-
Requires-Dist:
|
15
|
+
Requires-Dist: aiofiles (>=24.1.0,<25.0.0)
|
16
|
+
Requires-Dist: aiohttp (>=3.10.10,<4.0.0)
|
16
17
|
Requires-Dist: pycryptodome (>=3.19.1,<4.0.0)
|
17
18
|
Requires-Dist: pydantic (>=1.10.19,<2.0.0)
|
18
19
|
Description-Content-Type: text/markdown
|
@@ -270,6 +270,10 @@ class PetKitClient:
|
|
270
270
|
|
271
271
|
endpoint = data_class.get_endpoint(device_type)
|
272
272
|
|
273
|
+
if endpoint is None:
|
274
|
+
_LOGGER.debug("Endpoint not found for device type: %s", device_type)
|
275
|
+
return
|
276
|
+
|
273
277
|
# Specific device ask for data from the device
|
274
278
|
device_cont = None
|
275
279
|
if self.petkit_entities.get(device.device_id, None):
|
@@ -5,7 +5,7 @@ from typing import Any, ClassVar
|
|
5
5
|
|
6
6
|
from pydantic import BaseModel, Field
|
7
7
|
|
8
|
-
from pypetkitapi.const import DEVICE_DATA, DEVICE_RECORDS, PetkitEndpoint
|
8
|
+
from pypetkitapi.const import CTW3, DEVICE_DATA, DEVICE_RECORDS, PetkitEndpoint
|
9
9
|
from pypetkitapi.containers import Device
|
10
10
|
|
11
11
|
|
@@ -96,9 +96,11 @@ class WaterFountainRecord(BaseModel):
|
|
96
96
|
device_type: str | None = Field(None, alias="deviceType")
|
97
97
|
|
98
98
|
@classmethod
|
99
|
-
def get_endpoint(cls, device_type: str) -> str:
|
99
|
+
def get_endpoint(cls, device_type: str) -> str | None:
|
100
100
|
"""Get the endpoint URL for the given device type."""
|
101
|
-
|
101
|
+
if device_type == CTW3:
|
102
|
+
return PetkitEndpoint.GET_WORK_RECORD
|
103
|
+
return None
|
102
104
|
|
103
105
|
@classmethod
|
104
106
|
def query_param(
|
@@ -187,7 +187,7 @@ build-backend = "poetry.core.masonry.api"
|
|
187
187
|
|
188
188
|
[tool.poetry]
|
189
189
|
name = "pypetkitapi"
|
190
|
-
version = "1.7.
|
190
|
+
version = "1.7.4"
|
191
191
|
description = "Python client for PetKit API"
|
192
192
|
authors = ["Jezza34000 <info@mail.com>"]
|
193
193
|
readme = "README.md"
|
@@ -196,7 +196,8 @@ license = "MIT"
|
|
196
196
|
|
197
197
|
[tool.poetry.dependencies]
|
198
198
|
python = ">=3.11"
|
199
|
-
aiohttp = "^3.
|
199
|
+
aiohttp = "^3.10.10"
|
200
|
+
aiofiles = "^24.1.0"
|
200
201
|
pycryptodome = "^3.19.1"
|
201
202
|
pydantic = "^1.10.19"
|
202
203
|
|
@@ -207,7 +208,7 @@ ruff = "^0.8.1"
|
|
207
208
|
types-aiofiles = "^24.1.0.20240626"
|
208
209
|
|
209
210
|
[tool.bumpver]
|
210
|
-
current_version = "1.7.
|
211
|
+
current_version = "1.7.4"
|
211
212
|
version_pattern = "MAJOR.MINOR.PATCH"
|
212
213
|
commit_message = "bump version {old_version} -> {new_version}"
|
213
214
|
tag_message = "{new_version}"
|
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
|