pypetkitapi 0.5.2__tar.gz → 0.5.3__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.
- {pypetkitapi-0.5.2 → pypetkitapi-0.5.3}/PKG-INFO +1 -1
- pypetkitapi-0.5.3/pypetkitapi/py.typed +0 -0
- {pypetkitapi-0.5.2 → pypetkitapi-0.5.3}/pyproject.toml +2 -2
- {pypetkitapi-0.5.2 → pypetkitapi-0.5.3}/LICENSE +0 -0
- {pypetkitapi-0.5.2 → pypetkitapi-0.5.3}/README.md +0 -0
- {pypetkitapi-0.5.2 → pypetkitapi-0.5.3}/pypetkitapi/__init__.py +0 -0
- {pypetkitapi-0.5.2 → pypetkitapi-0.5.3}/pypetkitapi/client.py +0 -0
- {pypetkitapi-0.5.2 → pypetkitapi-0.5.3}/pypetkitapi/command.py +0 -0
- {pypetkitapi-0.5.2 → pypetkitapi-0.5.3}/pypetkitapi/const.py +0 -0
- {pypetkitapi-0.5.2 → pypetkitapi-0.5.3}/pypetkitapi/containers.py +0 -0
- {pypetkitapi-0.5.2 → pypetkitapi-0.5.3}/pypetkitapi/exceptions.py +0 -0
- {pypetkitapi-0.5.2 → pypetkitapi-0.5.3}/pypetkitapi/feeder_container.py +0 -0
- {pypetkitapi-0.5.2 → pypetkitapi-0.5.3}/pypetkitapi/litter_container.py +12 -12
- {pypetkitapi-0.5.2 → pypetkitapi-0.5.3}/pypetkitapi/water_fountain_container.py +0 -0
File without changes
|
@@ -187,7 +187,7 @@ build-backend = "poetry.core.masonry.api"
|
|
187
187
|
|
188
188
|
[tool.poetry]
|
189
189
|
name = "pypetkitapi"
|
190
|
-
version = "0.5.
|
190
|
+
version = "0.5.3"
|
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 = "0.5.
|
207
|
+
current_version = "0.5.3"
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -82,6 +82,17 @@ class SettingsLitter(BaseModel):
|
|
82
82
|
wander_detection: int | None = Field(None, alias="wanderDetection")
|
83
83
|
|
84
84
|
|
85
|
+
class WorkState(BaseModel):
|
86
|
+
"""Dataclass for work state data."""
|
87
|
+
|
88
|
+
safe_warn: int | None = Field(None, alias="safeWarn")
|
89
|
+
stop_time: int | None = Field(None, alias="stopTime")
|
90
|
+
work_mode: int | None = Field(None, alias="workMode")
|
91
|
+
work_process: int | None = Field(None, alias="workProcess")
|
92
|
+
work_reason: int | None = Field(None, alias="workReason")
|
93
|
+
pet_in_time: int | None = Field(None, alias="petInTime")
|
94
|
+
|
95
|
+
|
85
96
|
class StateLitter(BaseModel):
|
86
97
|
"""Dataclass for state.
|
87
98
|
-> LitterData subclass.
|
@@ -128,17 +139,7 @@ class StateLitter(BaseModel):
|
|
128
139
|
seal_door_state: int | None = Field(None, alias="sealDoorState")
|
129
140
|
top_ins: int | None = Field(None, alias="topIns")
|
130
141
|
wander_time: int | None = Field(None, alias="wanderTime")
|
131
|
-
|
132
|
-
|
133
|
-
class WorkState(BaseModel):
|
134
|
-
"""Dataclass for work state data."""
|
135
|
-
|
136
|
-
safe_warn: int | None = Field(None, alias="safeWarn")
|
137
|
-
stop_time: int | None = Field(None, alias="stopTime")
|
138
|
-
work_mode: int | None = Field(None, alias="workMode")
|
139
|
-
work_process: int | None = Field(None, alias="workProcess")
|
140
|
-
work_reason: int | None = Field(None, alias="workReason")
|
141
|
-
pet_in_time: int | None = Field(None, alias="petInTime")
|
142
|
+
work_state: WorkState | None = Field(None, alias="workState")
|
142
143
|
|
143
144
|
|
144
145
|
class Litter(BaseModel):
|
@@ -182,7 +183,6 @@ class Litter(BaseModel):
|
|
182
183
|
service_status: int | None = Field(None, alias="serviceStatus")
|
183
184
|
total_time: int | None = Field(None, alias="totalTime")
|
184
185
|
device_type: str | None = Field(None, alias="deviceType")
|
185
|
-
work_state: WorkState | None = Field(None, alias="workState")
|
186
186
|
|
187
187
|
@classmethod
|
188
188
|
def get_endpoint(cls, device_type: str) -> str:
|
File without changes
|