pypetkitapi 1.2.0__py3-none-any.whl → 1.2.2__py3-none-any.whl

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/client.py CHANGED
@@ -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)
@@ -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
@@ -1,5 +1,5 @@
1
1
  pypetkitapi/__init__.py,sha256=eVpyGMD3tkYtiHUkdKEeNSZhQlZ4woI2Y5oVoV7CwXM,61
2
- pypetkitapi/client.py,sha256=ZhqNV1k6EW07itNefPCnXausMguoRXAhsovcc40prMo,16359
2
+ pypetkitapi/client.py,sha256=0f8wk5UkOtxr3VSF0yu-iFeetuaT9RLgd0URfypXx9w,16595
3
3
  pypetkitapi/command.py,sha256=gw3_J_oZHuuGLk66P8uRSqSrySjYa8ArpKaPHi2ybCw,7155
4
4
  pypetkitapi/const.py,sha256=Mxgezd9sy-LtpgjYuVKb9ii9HSUnz8FVyKx1GXbXBAU,3291
5
5
  pypetkitapi/containers.py,sha256=m7vzWcJG0U1EPftuBF6OB8eTVRhCoA2DFqekxI6LozI,3428
@@ -8,7 +8,7 @@ pypetkitapi/feeder_container.py,sha256=zGvMAfB4R0DoSTuw1MDhtehPb9bVcz9kAzNV6zhsA
8
8
  pypetkitapi/litter_container.py,sha256=WfBOXMTuSjrohZWtGsIYhjqumK1BXzUWoytKFMsmzec,11698
9
9
  pypetkitapi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  pypetkitapi/water_fountain_container.py,sha256=Lr1qc_hh2DKtIQEFMsLGJhRcguGhWn6-bm7UfBMT15A,6626
11
- pypetkitapi-1.2.0.dist-info/LICENSE,sha256=4FWnKolNLc1e3w6cVlT61YxfPh0DQNeQLN1CepKKSBg,1067
12
- pypetkitapi-1.2.0.dist-info/METADATA,sha256=IFp6hZevHVCLLoh5bdj1AI9zdHJFwZ8S05H2qZUh5Bw,4590
13
- pypetkitapi-1.2.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
14
- pypetkitapi-1.2.0.dist-info/RECORD,,
11
+ pypetkitapi-1.2.2.dist-info/LICENSE,sha256=4FWnKolNLc1e3w6cVlT61YxfPh0DQNeQLN1CepKKSBg,1067
12
+ pypetkitapi-1.2.2.dist-info/METADATA,sha256=929ixuYJI4XdFJPXdz0VzZsXH4-6haZ6db-R3i8_2Sg,4590
13
+ pypetkitapi-1.2.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
14
+ pypetkitapi-1.2.2.dist-info/RECORD,,