pypetkitapi 1.18.0__tar.gz → 1.19.0__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.3
2
2
  Name: pypetkitapi
3
- Version: 1.18.0
3
+ Version: 1.19.0
4
4
  Summary: Python client for PetKit API
5
5
  License: MIT
6
6
  Author: Jezza34000
@@ -51,7 +51,7 @@ from .media import DownloadDecryptMedia, MediaCloud, MediaFile, MediaManager
51
51
  from .purifier_container import Purifier
52
52
  from .water_fountain_container import WaterFountain
53
53
 
54
- __version__ = "1.18.0"
54
+ __version__ = "1.19.0"
55
55
 
56
56
  __all__ = [
57
57
  "CTW3",
@@ -126,7 +126,7 @@ class RecordType(StrEnum):
126
126
  MOVE = "move"
127
127
  PET = "pet"
128
128
  TOILETING = "toileting"
129
- WASTE = "waste_check"
129
+ WASTE_CHECK = "waste_check"
130
130
  DISH_BEFORE = "dish_before"
131
131
  DISH_AFTER = "dish_after"
132
132
 
@@ -137,7 +137,7 @@ RecordTypeLST = [
137
137
  RecordType.MOVE,
138
138
  RecordType.PET,
139
139
  RecordType.TOILETING,
140
- RecordType.WASTE,
140
+ RecordType.WASTE_CHECK,
141
141
  RecordType.DISH_BEFORE,
142
142
  RecordType.DISH_AFTER,
143
143
  ]
@@ -56,6 +56,7 @@ class SettingsLitter(BaseModel):
56
56
  fixed_time_spray: int | None = Field(None, alias="fixedTimeSpray")
57
57
  garbage_notify: int | None = Field(None, alias="garbageNotify")
58
58
  highlight: int | None = Field(None, alias="highlight")
59
+ home_mode: int | None = Field(None, alias="homeMode")
59
60
  kitten: int | None = None
60
61
  kitten_percent: float | None = Field(None, alias="kittenPercent")
61
62
  kitten_tips_time: int | None = Field(None, alias="kittenTipsTime")
@@ -174,6 +175,7 @@ class StateLitter(BaseModel):
174
175
  spray_reset_time: int | None = Field(None, alias="sprayResetTime")
175
176
  spray_state: int | None = Field(None, alias="sprayState")
176
177
  top_ins: int | None = Field(None, alias="topIns")
178
+ trunk_state: int | None = Field(None, alias="trunkState")
177
179
  used_times: int | None = Field(None, alias="usedTimes")
178
180
  wander_time: int | None = Field(None, alias="wanderTime")
179
181
  weight_state: int | None = Field(None, alias="weightState")
@@ -450,14 +452,14 @@ class Litter(BaseModel):
450
452
  device_pet_graph_out: list[PetOutGraph] | None = None
451
453
  device_records: list[LitterRecord] | None = None
452
454
  device_stats: LitterStats | None = None
453
- firmware: float
455
+ firmware: float | str | None = None
454
456
  firmware_details: list[FirmwareDetail] = Field(alias="firmwareDetails")
455
457
  hardware: int
456
458
  id: int
457
459
  in_times: int | None = Field(None, alias="inTimes")
458
460
  is_pet_out_tips: int | None = Field(None, alias="isPetOutTips")
459
461
  k3_device: Purifier | None = Field(None, alias="k3Device")
460
- last_out_time: int | None = None
462
+ last_out_time: int | None = Field(None, alias="lastOutTime")
461
463
  locale: str | None = None
462
464
  mac: str | None = None
463
465
  maintenance_time: int | None = Field(None, alias="maintenanceTime")
@@ -472,6 +474,7 @@ class Litter(BaseModel):
472
474
  pet_out_records: list[list[int]] | None = Field(None, alias="petOutRecords")
473
475
  pet_out_tips: list[Any] | None = Field(None, alias="petOutTips")
474
476
  purification_tip: int | None = Field(None, alias="purificationTip")
477
+ ph_error_popup: int | None = Field(None, alias="phErrorPopup")
475
478
  secret: str | None = None
476
479
  service_status: int | None = Field(None, alias="serviceStatus")
477
480
  settings: SettingsLitter | None = None
@@ -467,11 +467,11 @@ class MediaManager:
467
467
  waste_image_data.shit_picture
468
468
  and waste_image_data.shit_aes_key
469
469
  ):
470
- waste_filepath = f"{litter_id}/{date_str}/{RecordType.WASTE.name.lower()}"
470
+ waste_filepath = f"{litter_id}/{date_str}/{RecordType.WASTE_CHECK.name.lower()}"
471
471
  media_files.append(
472
472
  MediaCloud(
473
473
  event_id=record.event_id,
474
- event_type=RecordType.WASTE,
474
+ event_type=RecordType.WASTE_CHECK,
475
475
  device_id=litter_id,
476
476
  user_id=user_id,
477
477
  image=waste_image_data.shit_picture,
@@ -187,7 +187,7 @@ build-backend = "poetry.core.masonry.api"
187
187
 
188
188
  [tool.poetry]
189
189
  name = "pypetkitapi"
190
- version = "1.18.0"
190
+ version = "1.19.0"
191
191
  description = "Python client for PetKit API"
192
192
  authors = ["Jezza34000 <info@mail.com>"]
193
193
  readme = "README.md"
@@ -209,7 +209,7 @@ ruff = "^0.8.1"
209
209
  types-aiofiles = "^24.1.0.20240626"
210
210
 
211
211
  [tool.bumpver]
212
- current_version = "1.18.0"
212
+ current_version = "1.19.0"
213
213
  version_pattern = "MAJOR.MINOR.PATCH"
214
214
  commit_message = "bump version {old_version} -> {new_version}"
215
215
  tag_message = "{new_version}"
File without changes
File without changes