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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pypetkitapi
3
- Version: 1.2.0
3
+ Version: 1.2.2
4
4
  Summary: Python client for PetKit API
5
5
  Home-page: https://github.com/Jezza34000/pypetkit
6
6
  License: MIT
@@ -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.0"
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.0"
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