pypetkitapi 0.5.2__py3-none-any.whl → 0.5.3__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.
@@ -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:
pypetkitapi/py.typed ADDED
File without changes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pypetkitapi
3
- Version: 0.5.2
3
+ Version: 0.5.3
4
4
  Summary: Python client for PetKit API
5
5
  Home-page: https://github.com/Jezza34000/pypetkit
6
6
  License: MIT
@@ -5,9 +5,10 @@ pypetkitapi/const.py,sha256=B4uf3RGEkKmpVOo69DRP9g8hF_bodCA7vohnPjnrPFs,3183
5
5
  pypetkitapi/containers.py,sha256=4O79O9HZn4kksQysXGXcqVwvkdxbvhs1pr-0WRNCANc,3425
6
6
  pypetkitapi/exceptions.py,sha256=NWmpsI2ewC4HaIeu_uFwCeuPIHIJxZBzjoCP7aNwvhs,1139
7
7
  pypetkitapi/feeder_container.py,sha256=6a1Y_mTSGuD8qK1YqmiCfxPbZl84bcoIIP_d5g-UctQ,11381
8
- pypetkitapi/litter_container.py,sha256=hB5iiP0boSmooUqwMWA9jW72QYBrTNBhzY2MioxXUAQ,9447
8
+ pypetkitapi/litter_container.py,sha256=baeIihndFfU5F3kxtyO8Dm1qx1mPuMAUIYRH60CV3GM,9447
9
+ pypetkitapi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
10
  pypetkitapi/water_fountain_container.py,sha256=LcCTDjk7eSbnF7e38xev3D5mCv5wwJ6go8WGGBv-CaU,5278
10
- pypetkitapi-0.5.2.dist-info/LICENSE,sha256=4FWnKolNLc1e3w6cVlT61YxfPh0DQNeQLN1CepKKSBg,1067
11
- pypetkitapi-0.5.2.dist-info/METADATA,sha256=Opxfpy0mvK69SdgkxXsczN8KDQx2NcMYnLSRFT-ctRM,3611
12
- pypetkitapi-0.5.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
13
- pypetkitapi-0.5.2.dist-info/RECORD,,
11
+ pypetkitapi-0.5.3.dist-info/LICENSE,sha256=4FWnKolNLc1e3w6cVlT61YxfPh0DQNeQLN1CepKKSBg,1067
12
+ pypetkitapi-0.5.3.dist-info/METADATA,sha256=S43iNnEv3nDgaYIlF38R24rLVKlRCB-1wkqGRFK25B0,3611
13
+ pypetkitapi-0.5.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
14
+ pypetkitapi-0.5.3.dist-info/RECORD,,