pypetkitapi 1.9.1__tar.gz → 1.9.2__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.9.1
3
+ Version: 1.9.2
4
4
  Summary: Python client for PetKit API
5
5
  Home-page: https://github.com/Jezza34000/pypetkit
6
6
  License: MIT
@@ -40,7 +40,7 @@ from .medias import MediaHandler, MediasFiles
40
40
  from .purifier_container import Purifier
41
41
  from .water_fountain_container import WaterFountain
42
42
 
43
- __version__ = "1.9.1"
43
+ __version__ = "1.9.2"
44
44
 
45
45
  __all__ = [
46
46
  "CTW3",
@@ -5,7 +5,15 @@ from typing import Any, ClassVar
5
5
 
6
6
  from pydantic import BaseModel, Field
7
7
 
8
- from pypetkitapi.const import D3, D4, D4S, DEVICE_DATA, DEVICE_RECORDS, PetkitEndpoint
8
+ from pypetkitapi.const import (
9
+ D3,
10
+ D4,
11
+ D4S,
12
+ DEVICE_DATA,
13
+ DEVICE_RECORDS,
14
+ FEEDER_MINI,
15
+ PetkitEndpoint,
16
+ )
9
17
  from pypetkitapi.containers import CloudProduct, Device, FirmwareDetail, Wifi
10
18
 
11
19
 
@@ -276,8 +284,10 @@ class FeederRecord(BaseModel):
276
284
  return PetkitEndpoint.DAILY_FEED_AND_EAT
277
285
  if device_type == D4:
278
286
  return PetkitEndpoint.FEED_STATISTIC
279
- if device_type == D4S:
287
+ if device_type in D4S:
280
288
  return PetkitEndpoint.DAILY_FEED
289
+ if device_type in FEEDER_MINI:
290
+ return PetkitEndpoint.DAILY_FEED.lower() # Workaround for Feeder Mini
281
291
  return PetkitEndpoint.GET_DEVICE_RECORD
282
292
 
283
293
  @classmethod
@@ -187,7 +187,7 @@ build-backend = "poetry.core.masonry.api"
187
187
 
188
188
  [tool.poetry]
189
189
  name = "pypetkitapi"
190
- version = "1.9.1"
190
+ version = "1.9.2"
191
191
  description = "Python client for PetKit API"
192
192
  authors = ["Jezza34000 <info@mail.com>"]
193
193
  readme = "README.md"
@@ -208,7 +208,7 @@ ruff = "^0.8.1"
208
208
  types-aiofiles = "^24.1.0.20240626"
209
209
 
210
210
  [tool.bumpver]
211
- current_version = "1.9.1"
211
+ current_version = "1.9.2"
212
212
  version_pattern = "MAJOR.MINOR.PATCH"
213
213
  commit_message = "bump version {old_version} -> {new_version}"
214
214
  tag_message = "{new_version}"
File without changes
File without changes