pypetkitapi 1.6.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pypetkitapi
3
- Version: 1.6.2
3
+ Version: 1.6.3
4
4
  Summary: Python client for PetKit API
5
5
  Home-page: https://github.com/Jezza34000/pypetkit
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  """Dataclasses container for petkit API."""
2
2
 
3
- from pydantic import BaseModel, Field, model_validator
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
- @model_validator(mode="before")
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.2"
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.2"
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