pypetkitapi 1.2.0__tar.gz → 1.2.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.
- {pypetkitapi-1.2.0 → pypetkitapi-1.2.2}/PKG-INFO +1 -1
- {pypetkitapi-1.2.0 → pypetkitapi-1.2.2}/pypetkitapi/client.py +7 -0
- {pypetkitapi-1.2.0 → pypetkitapi-1.2.2}/pyproject.toml +2 -2
- {pypetkitapi-1.2.0 → pypetkitapi-1.2.2}/LICENSE +0 -0
- {pypetkitapi-1.2.0 → pypetkitapi-1.2.2}/README.md +0 -0
- {pypetkitapi-1.2.0 → pypetkitapi-1.2.2}/pypetkitapi/__init__.py +0 -0
- {pypetkitapi-1.2.0 → pypetkitapi-1.2.2}/pypetkitapi/command.py +0 -0
- {pypetkitapi-1.2.0 → pypetkitapi-1.2.2}/pypetkitapi/const.py +0 -0
- {pypetkitapi-1.2.0 → pypetkitapi-1.2.2}/pypetkitapi/containers.py +0 -0
- {pypetkitapi-1.2.0 → pypetkitapi-1.2.2}/pypetkitapi/exceptions.py +0 -0
- {pypetkitapi-1.2.0 → pypetkitapi-1.2.2}/pypetkitapi/feeder_container.py +0 -0
- {pypetkitapi-1.2.0 → pypetkitapi-1.2.2}/pypetkitapi/litter_container.py +0 -0
- {pypetkitapi-1.2.0 → pypetkitapi-1.2.2}/pypetkitapi/py.typed +0 -0
- {pypetkitapi-1.2.0 → pypetkitapi-1.2.2}/pypetkitapi/water_fountain_container.py +0 -0
@@ -297,6 +297,13 @@ class PetKitClient:
|
|
297
297
|
_LOGGER.error("Unexpected response type: %s", type(response))
|
298
298
|
return
|
299
299
|
|
300
|
+
# Add the device type into dataclass
|
301
|
+
if isinstance(device_data, list):
|
302
|
+
for item in device_data:
|
303
|
+
item.device_type = device_type
|
304
|
+
else:
|
305
|
+
device_data.device_type = device_type
|
306
|
+
|
300
307
|
if data_class.data_type == DEVICE_DATA:
|
301
308
|
self.petkit_entities[device_id] = device_data
|
302
309
|
_LOGGER.debug("Device data fetched OK for %s", device_type)
|
@@ -187,7 +187,7 @@ build-backend = "poetry.core.masonry.api"
|
|
187
187
|
|
188
188
|
[tool.poetry]
|
189
189
|
name = "pypetkitapi"
|
190
|
-
version = "1.2.
|
190
|
+
version = "1.2.2"
|
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 = "1.2.
|
207
|
+
current_version = "1.2.2"
|
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
|
File without changes
|
File without changes
|