pypetkitapi 1.2.3__tar.gz → 1.2.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.
@@ -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
@@ -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:
@@ -187,7 +187,7 @@ build-backend = "poetry.core.masonry.api"
187
187
 
188
188
  [tool.poetry]
189
189
  name = "pypetkitapi"
190
- version = "1.2.3"
190
+ version = "1.2.4"
191
191
  description = "Python client for PetKit API"
192
192
  authors = ["Jezza34000 <info@mail.com>"]
193
193
  readme = "README.md"
@@ -204,7 +204,7 @@ black = "^24.10.0"
204
204
  ruff = "^0.8.1"
205
205
 
206
206
  [tool.bumpver]
207
- current_version = "1.2.3"
207
+ current_version = "1.2.4"
208
208
  version_pattern = "MAJOR.MINOR.PATCH"
209
209
  commit_message = "bump version {old_version} -> {new_version}"
210
210
  tag_message = "{new_version}"
File without changes
File without changes