pypetkitapi 1.11.5__py3-none-any.whl → 1.12.1__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/client.py +6 -2
- pypetkitapi/litter_container.py +1 -0
- {pypetkitapi-1.11.5.dist-info → pypetkitapi-1.12.1.dist-info}/METADATA +1 -1
- {pypetkitapi-1.11.5.dist-info → pypetkitapi-1.12.1.dist-info}/RECORD +7 -7
- {pypetkitapi-1.11.5.dist-info → pypetkitapi-1.12.1.dist-info}/WHEEL +1 -1
- {pypetkitapi-1.11.5.dist-info → pypetkitapi-1.12.1.dist-info}/LICENSE +0 -0
pypetkitapi/__init__.py
CHANGED
pypetkitapi/client.py
CHANGED
@@ -530,13 +530,17 @@ class PetKitClient:
|
|
530
530
|
:param device_records: Litter data.
|
531
531
|
"""
|
532
532
|
for stat in (
|
533
|
-
s
|
533
|
+
s
|
534
|
+
for s in device_records.device_records or []
|
535
|
+
if isinstance(s, LitterRecord)
|
534
536
|
):
|
535
537
|
if stat.pet_id == pet.pet_id and (
|
536
538
|
pet.last_litter_usage is None
|
537
539
|
or self.get_safe_value(stat.timestamp) > pet.last_litter_usage
|
538
540
|
):
|
539
|
-
pet.last_litter_usage =
|
541
|
+
pet.last_litter_usage = (
|
542
|
+
stat.timestamp if stat.timestamp is not None else 0
|
543
|
+
)
|
540
544
|
pet.last_measured_weight = self.get_safe_value(
|
541
545
|
stat.content.pet_weight if stat.content else None
|
542
546
|
)
|
pypetkitapi/litter_container.py
CHANGED
@@ -147,6 +147,7 @@ class StateLitter(BaseModel):
|
|
147
147
|
camera_status: int | None = Field(None, alias="cameraStatus")
|
148
148
|
dump_state: int | None = Field(None, alias="dumpState")
|
149
149
|
liquid: int | None = None
|
150
|
+
light_state: dict | None = Field(None, alias="lightState")
|
150
151
|
pack_state: int | None = Field(None, alias="packState")
|
151
152
|
package_install: int | None = Field(None, alias="packageInstall")
|
152
153
|
package_secret: str | None = Field(None, alias="packageSecret")
|
@@ -1,19 +1,19 @@
|
|
1
|
-
pypetkitapi/__init__.py,sha256=
|
1
|
+
pypetkitapi/__init__.py,sha256=T4726e-xkLSV7y0cs9BXcEebn6vm4dLV2_96YqjmJ0k,2107
|
2
2
|
pypetkitapi/bluetooth.py,sha256=JIj6mA5D1ZUUFSvnYco1XiGDbF4exKIU50zQIJMXLII,8976
|
3
|
-
pypetkitapi/client.py,sha256=
|
3
|
+
pypetkitapi/client.py,sha256=9K95_UuuBBsMYAssN8QrtLnS27IPso4Rnvn663RRs5Y,29760
|
4
4
|
pypetkitapi/command.py,sha256=cMCUutZCQo9Ddvjl_FYR5UjU_CqFz1iyetMznYwjpzM,7500
|
5
5
|
pypetkitapi/const.py,sha256=W0cWpBvOySEaPvVAnQHLeIWYEqKG051mVNv-qsfjo7I,4609
|
6
6
|
pypetkitapi/containers.py,sha256=F_uyDBD0a5QD4s_ArjYiKTAAg1XHYBvmV_lEnO9RQ-U,4786
|
7
7
|
pypetkitapi/exceptions.py,sha256=4BXUyYXLfZjNxdnOGJPjyE9ASIl7JmQphjws87jvHtE,1631
|
8
8
|
pypetkitapi/feeder_container.py,sha256=PhidWd5WpsZqtdKZy60PzE67YXgQfApjm8CqvMCHK3U,14743
|
9
|
-
pypetkitapi/litter_container.py,sha256=
|
9
|
+
pypetkitapi/litter_container.py,sha256=VIQZyZwmsxgMsV80Bc1lnYMqJyTZSaiqwE4Y_CNTD9Q,19338
|
10
10
|
pypetkitapi/media.py,sha256=5XeiTQCaIgMisaZxdvdKK9RvDKmTR0zRBhKKXKBHTXI,26904
|
11
11
|
pypetkitapi/purifier_container.py,sha256=ssyIxhNben5XJ4KlQTXTrtULg2ji6DqHqjzOq08d1-I,2491
|
12
12
|
pypetkitapi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
13
13
|
pypetkitapi/schedule_container.py,sha256=ycIHeQHkVILDp7ZBjaVdGI_9rhHrgqeKBfvQAX3JMGE,2071
|
14
14
|
pypetkitapi/utils.py,sha256=z7325kcJQUburnF28HSXrJMvY_gY9007K73Zwxp-4DQ,743
|
15
15
|
pypetkitapi/water_fountain_container.py,sha256=5J0b-fDZYcFLNX2El7fifv8H6JMhBCt-ttxSow1ozRQ,6787
|
16
|
-
pypetkitapi-1.
|
17
|
-
pypetkitapi-1.
|
18
|
-
pypetkitapi-1.
|
19
|
-
pypetkitapi-1.
|
16
|
+
pypetkitapi-1.12.1.dist-info/LICENSE,sha256=u5jNkZEn6YMrtN4Kr5rU3TcBJ5-eAt0qMx4JDsbsnzM,1074
|
17
|
+
pypetkitapi-1.12.1.dist-info/METADATA,sha256=zn4bNIG96NlL3PQ87aTIaSMo0VDXW4eru8ZbeXFyphE,6946
|
18
|
+
pypetkitapi-1.12.1.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
19
|
+
pypetkitapi-1.12.1.dist-info/RECORD,,
|
File without changes
|