pypetkitapi 1.9.1__tar.gz → 1.9.2__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.9.1 → pypetkitapi-1.9.2}/PKG-INFO +1 -1
- {pypetkitapi-1.9.1 → pypetkitapi-1.9.2}/pypetkitapi/__init__.py +1 -1
- {pypetkitapi-1.9.1 → pypetkitapi-1.9.2}/pypetkitapi/feeder_container.py +12 -2
- {pypetkitapi-1.9.1 → pypetkitapi-1.9.2}/pyproject.toml +2 -2
- {pypetkitapi-1.9.1 → pypetkitapi-1.9.2}/LICENSE +0 -0
- {pypetkitapi-1.9.1 → pypetkitapi-1.9.2}/README.md +0 -0
- {pypetkitapi-1.9.1 → pypetkitapi-1.9.2}/pypetkitapi/client.py +0 -0
- {pypetkitapi-1.9.1 → pypetkitapi-1.9.2}/pypetkitapi/command.py +0 -0
- {pypetkitapi-1.9.1 → pypetkitapi-1.9.2}/pypetkitapi/const.py +0 -0
- {pypetkitapi-1.9.1 → pypetkitapi-1.9.2}/pypetkitapi/containers.py +0 -0
- {pypetkitapi-1.9.1 → pypetkitapi-1.9.2}/pypetkitapi/exceptions.py +0 -0
- {pypetkitapi-1.9.1 → pypetkitapi-1.9.2}/pypetkitapi/litter_container.py +0 -0
- {pypetkitapi-1.9.1 → pypetkitapi-1.9.2}/pypetkitapi/medias.py +0 -0
- {pypetkitapi-1.9.1 → pypetkitapi-1.9.2}/pypetkitapi/purifier_container.py +0 -0
- {pypetkitapi-1.9.1 → pypetkitapi-1.9.2}/pypetkitapi/py.typed +0 -0
- {pypetkitapi-1.9.1 → pypetkitapi-1.9.2}/pypetkitapi/water_fountain_container.py +0 -0
@@ -5,7 +5,15 @@ from typing import Any, ClassVar
|
|
5
5
|
|
6
6
|
from pydantic import BaseModel, Field
|
7
7
|
|
8
|
-
from pypetkitapi.const import
|
8
|
+
from pypetkitapi.const import (
|
9
|
+
D3,
|
10
|
+
D4,
|
11
|
+
D4S,
|
12
|
+
DEVICE_DATA,
|
13
|
+
DEVICE_RECORDS,
|
14
|
+
FEEDER_MINI,
|
15
|
+
PetkitEndpoint,
|
16
|
+
)
|
9
17
|
from pypetkitapi.containers import CloudProduct, Device, FirmwareDetail, Wifi
|
10
18
|
|
11
19
|
|
@@ -276,8 +284,10 @@ class FeederRecord(BaseModel):
|
|
276
284
|
return PetkitEndpoint.DAILY_FEED_AND_EAT
|
277
285
|
if device_type == D4:
|
278
286
|
return PetkitEndpoint.FEED_STATISTIC
|
279
|
-
if device_type
|
287
|
+
if device_type in D4S:
|
280
288
|
return PetkitEndpoint.DAILY_FEED
|
289
|
+
if device_type in FEEDER_MINI:
|
290
|
+
return PetkitEndpoint.DAILY_FEED.lower() # Workaround for Feeder Mini
|
281
291
|
return PetkitEndpoint.GET_DEVICE_RECORD
|
282
292
|
|
283
293
|
@classmethod
|
@@ -187,7 +187,7 @@ build-backend = "poetry.core.masonry.api"
|
|
187
187
|
|
188
188
|
[tool.poetry]
|
189
189
|
name = "pypetkitapi"
|
190
|
-
version = "1.9.
|
190
|
+
version = "1.9.2"
|
191
191
|
description = "Python client for PetKit API"
|
192
192
|
authors = ["Jezza34000 <info@mail.com>"]
|
193
193
|
readme = "README.md"
|
@@ -208,7 +208,7 @@ ruff = "^0.8.1"
|
|
208
208
|
types-aiofiles = "^24.1.0.20240626"
|
209
209
|
|
210
210
|
[tool.bumpver]
|
211
|
-
current_version = "1.9.
|
211
|
+
current_version = "1.9.2"
|
212
212
|
version_pattern = "MAJOR.MINOR.PATCH"
|
213
213
|
commit_message = "bump version {old_version} -> {new_version}"
|
214
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
|
File without changes
|