pypetkitapi 1.2.3__py3-none-any.whl → 1.2.4__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.
@@ -142,7 +142,7 @@ class StateLitter(BaseModel):
142
142
  work_state: WorkState | None = Field(None, alias="workState")
143
143
 
144
144
 
145
- class Content(BaseModel):
145
+ class ContentSC(BaseModel):
146
146
  """Dataclass for content data."""
147
147
 
148
148
  box: int | None = None
@@ -157,11 +157,22 @@ class Content(BaseModel):
157
157
  upload: int | None = None
158
158
 
159
159
 
160
- class SubContent(BaseModel):
160
+ class LRContent(BaseModel):
161
+ """Dataclass for pet data."""
162
+
163
+ auto_clear: int | None = Field(None, alias="autoClear")
164
+ interval: int | None = None
165
+ pet_weight: int | None = Field(None, alias="petWeight")
166
+ time_in: int | None = Field(None, alias="timeIn")
167
+ time_out: int | None = Field(None, alias="timeOut")
168
+ error: int | None = None
169
+
170
+
171
+ class LRSubContent(BaseModel):
161
172
  """Dataclass for sub-content data."""
162
173
 
163
174
  aes_key: str | None = Field(None, alias="aesKey")
164
- content: Content | None = None
175
+ content: ContentSC | None = None
165
176
  device_id: int | None = Field(None, alias="deviceId")
166
177
  duration: int | None = None
167
178
  enum_event_type: str | None = Field(None, alias="enumEventType")
@@ -189,7 +200,7 @@ class LitterRecord(BaseModel):
189
200
 
190
201
  aes_key: str | None = Field(None, alias="aesKey")
191
202
  avatar: str | None = None
192
- content: dict[str, Any] | None = None
203
+ content: LRContent | None = None
193
204
  device_id: int | None = Field(None, alias="deviceId")
194
205
  duration: int | None = None
195
206
  enum_event_type: str | None = Field(None, alias="enumEventType")
@@ -205,7 +216,7 @@ class LitterRecord(BaseModel):
205
216
  preview: str | None = None
206
217
  related_event: str | None = Field(None, alias="relatedEvent")
207
218
  storage_space: int | None = Field(None, alias="storageSpace")
208
- sub_content: list[SubContent] | None = Field(None, alias="subContent")
219
+ sub_content: list[LRSubContent] | None = Field(None, alias="subContent")
209
220
  timestamp: int | None = None
210
221
  toilet_detection: int | None = Field(None, alias="toiletDetection")
211
222
  upload: int | None = None
@@ -267,7 +278,7 @@ class Litter(BaseModel):
267
278
  service_status: int | None = Field(None, alias="serviceStatus")
268
279
  total_time: int | None = Field(None, alias="totalTime")
269
280
  device_type: str | None = Field(None, alias="deviceType")
270
- device_records: LitterRecord | None = None
281
+ device_records: list[LitterRecord] | None = None
271
282
 
272
283
  @classmethod
273
284
  def get_endpoint(cls, device_type: str) -> str:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pypetkitapi
3
- Version: 1.2.3
3
+ Version: 1.2.4
4
4
  Summary: Python client for PetKit API
5
5
  Home-page: https://github.com/Jezza34000/pypetkit
6
6
  License: MIT
@@ -5,10 +5,10 @@ pypetkitapi/const.py,sha256=Mxgezd9sy-LtpgjYuVKb9ii9HSUnz8FVyKx1GXbXBAU,3291
5
5
  pypetkitapi/containers.py,sha256=m7vzWcJG0U1EPftuBF6OB8eTVRhCoA2DFqekxI6LozI,3428
6
6
  pypetkitapi/exceptions.py,sha256=NWmpsI2ewC4HaIeu_uFwCeuPIHIJxZBzjoCP7aNwvhs,1139
7
7
  pypetkitapi/feeder_container.py,sha256=8toLt9YSvEvjNSy9b6jwHSNZxuXP6D1ZnrnUdL78K6s,13190
8
- pypetkitapi/litter_container.py,sha256=-2pwUdpg48gcBQb-68zX3J6RHoslhVjucF6RvfuqQ2g,13049
8
+ pypetkitapi/litter_container.py,sha256=F16kIMlgqk97ewQrqsIPY6NX7qWvfQ2qM4If68Tq5Yg,13414
9
9
  pypetkitapi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  pypetkitapi/water_fountain_container.py,sha256=Lr1qc_hh2DKtIQEFMsLGJhRcguGhWn6-bm7UfBMT15A,6626
11
- pypetkitapi-1.2.3.dist-info/LICENSE,sha256=4FWnKolNLc1e3w6cVlT61YxfPh0DQNeQLN1CepKKSBg,1067
12
- pypetkitapi-1.2.3.dist-info/METADATA,sha256=2PCwdvnC6vGtJCMF0hYXgKVihF0UyLKBWm_-x6Xnn4E,4590
13
- pypetkitapi-1.2.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
14
- pypetkitapi-1.2.3.dist-info/RECORD,,
11
+ pypetkitapi-1.2.4.dist-info/LICENSE,sha256=4FWnKolNLc1e3w6cVlT61YxfPh0DQNeQLN1CepKKSBg,1067
12
+ pypetkitapi-1.2.4.dist-info/METADATA,sha256=NRf9Cu42Kl8Zngxerji1AIppGxN3Pojeq97bTDJGsYc,4590
13
+ pypetkitapi-1.2.4.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
14
+ pypetkitapi-1.2.4.dist-info/RECORD,,