pypetkitapi 1.9.1__py3-none-any.whl → 1.9.2__py3-none-any.whl
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/__init__.py +1 -1
- pypetkitapi/feeder_container.py +12 -2
- {pypetkitapi-1.9.1.dist-info → pypetkitapi-1.9.2.dist-info}/METADATA +1 -1
- {pypetkitapi-1.9.1.dist-info → pypetkitapi-1.9.2.dist-info}/RECORD +6 -6
- {pypetkitapi-1.9.1.dist-info → pypetkitapi-1.9.2.dist-info}/LICENSE +0 -0
- {pypetkitapi-1.9.1.dist-info → pypetkitapi-1.9.2.dist-info}/WHEEL +0 -0
pypetkitapi/__init__.py
CHANGED
pypetkitapi/feeder_container.py
CHANGED
@@ -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
|
@@ -1,16 +1,16 @@
|
|
1
|
-
pypetkitapi/__init__.py,sha256=
|
1
|
+
pypetkitapi/__init__.py,sha256=gwZUf8yep0CbngCc6uTqzZdmmTIaNTdIX5qE0YU6CrU,1562
|
2
2
|
pypetkitapi/client.py,sha256=o8dBNxdupWwf7AIt6GB4Jc4SLExc0Zv1E-eX2Qjt5FY,27807
|
3
3
|
pypetkitapi/command.py,sha256=G7AEtUcaK-lcRliNf4oUxPkvDO_GNBkJ-ZUcOo7DGHM,7697
|
4
4
|
pypetkitapi/const.py,sha256=pkTJ0l-8mQix9aoJNC2UYfyUdG7ie826xnv7EkOZtPw,4208
|
5
5
|
pypetkitapi/containers.py,sha256=oJR22ZruMr-0IRgiucdnj_nutOH59MKvmaFTwLJNiJI,4635
|
6
6
|
pypetkitapi/exceptions.py,sha256=fuTLT6Iw2_kA7eOyNJPf59vQkgfByhAnTThY4lC0Rt0,1283
|
7
|
-
pypetkitapi/feeder_container.py,sha256=
|
7
|
+
pypetkitapi/feeder_container.py,sha256=vfgxPOwbAFd3OFDMXH8md_lk1RLVlEDCFMjbREB4eS4,14640
|
8
8
|
pypetkitapi/litter_container.py,sha256=qKP3XFUkbzLREZPXEMDvpR1sqo6BI560O6eJYdkrX7w,19110
|
9
9
|
pypetkitapi/medias.py,sha256=IuWkC7usw0Hbx173X8TGv24jOp4nqv6bIUosZBpXMGg,6945
|
10
10
|
pypetkitapi/purifier_container.py,sha256=ssyIxhNben5XJ4KlQTXTrtULg2ji6DqHqjzOq08d1-I,2491
|
11
11
|
pypetkitapi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
12
|
pypetkitapi/water_fountain_container.py,sha256=5J0b-fDZYcFLNX2El7fifv8H6JMhBCt-ttxSow1ozRQ,6787
|
13
|
-
pypetkitapi-1.9.
|
14
|
-
pypetkitapi-1.9.
|
15
|
-
pypetkitapi-1.9.
|
16
|
-
pypetkitapi-1.9.
|
13
|
+
pypetkitapi-1.9.2.dist-info/LICENSE,sha256=4FWnKolNLc1e3w6cVlT61YxfPh0DQNeQLN1CepKKSBg,1067
|
14
|
+
pypetkitapi-1.9.2.dist-info/METADATA,sha256=RUqDHszBUmhesyoV2WfQX-RWQrGZdGSpm-IFBwwMDnE,5167
|
15
|
+
pypetkitapi-1.9.2.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
|
16
|
+
pypetkitapi-1.9.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|