pypetkitapi 1.6.1__tar.gz → 1.6.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-1.6.1 → pypetkitapi-1.6.3}/PKG-INFO +1 -1
- {pypetkitapi-1.6.1 → pypetkitapi-1.6.3}/pypetkitapi/containers.py +2 -2
- {pypetkitapi-1.6.1 → pypetkitapi-1.6.3}/pyproject.toml +2 -2
- {pypetkitapi-1.6.1 → pypetkitapi-1.6.3}/LICENSE +0 -0
- {pypetkitapi-1.6.1 → pypetkitapi-1.6.3}/README.md +0 -0
- {pypetkitapi-1.6.1 → pypetkitapi-1.6.3}/pypetkitapi/__init__.py +0 -0
- {pypetkitapi-1.6.1 → pypetkitapi-1.6.3}/pypetkitapi/client.py +0 -0
- {pypetkitapi-1.6.1 → pypetkitapi-1.6.3}/pypetkitapi/command.py +0 -0
- {pypetkitapi-1.6.1 → pypetkitapi-1.6.3}/pypetkitapi/const.py +0 -0
- {pypetkitapi-1.6.1 → pypetkitapi-1.6.3}/pypetkitapi/exceptions.py +0 -0
- {pypetkitapi-1.6.1 → pypetkitapi-1.6.3}/pypetkitapi/feeder_container.py +0 -0
- {pypetkitapi-1.6.1 → pypetkitapi-1.6.3}/pypetkitapi/litter_container.py +0 -0
- {pypetkitapi-1.6.1 → pypetkitapi-1.6.3}/pypetkitapi/medias.py +0 -0
- {pypetkitapi-1.6.1 → pypetkitapi-1.6.3}/pypetkitapi/py.typed +0 -0
- {pypetkitapi-1.6.1 → pypetkitapi-1.6.3}/pypetkitapi/water_fountain_container.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
"""Dataclasses container for petkit API."""
|
2
2
|
|
3
|
-
from pydantic import BaseModel, Field,
|
3
|
+
from pydantic import BaseModel, Field, root_validator
|
4
4
|
|
5
5
|
|
6
6
|
class RegionInfo(BaseModel):
|
@@ -75,7 +75,7 @@ class Pet(BaseModel):
|
|
75
75
|
device_type: str = "pet" # Fictive field (for HA compatibility) fixed
|
76
76
|
firmware: str | None = None # Fictive field (for HA compatibility) fixed
|
77
77
|
|
78
|
-
@
|
78
|
+
@root_validator(pre=True)
|
79
79
|
def populate_fictive_fields(cls, values): # noqa: N805
|
80
80
|
"""Populate fictive fields based on other fields."""
|
81
81
|
values["id"] = values.get("id") or values.get("petId")
|
@@ -187,7 +187,7 @@ build-backend = "poetry.core.masonry.api"
|
|
187
187
|
|
188
188
|
[tool.poetry]
|
189
189
|
name = "pypetkitapi"
|
190
|
-
version = "1.6.
|
190
|
+
version = "1.6.3"
|
191
191
|
description = "Python client for PetKit API"
|
192
192
|
authors = ["Jezza34000 <info@mail.com>"]
|
193
193
|
readme = "README.md"
|
@@ -206,7 +206,7 @@ ruff = "^0.8.1"
|
|
206
206
|
types-aiofiles = "^24.1.0.20240626"
|
207
207
|
|
208
208
|
[tool.bumpver]
|
209
|
-
current_version = "1.6.
|
209
|
+
current_version = "1.6.3"
|
210
210
|
version_pattern = "MAJOR.MINOR.PATCH"
|
211
211
|
commit_message = "bump version {old_version} -> {new_version}"
|
212
212
|
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
|
File without changes
|
File without changes
|
File without changes
|