python-siseli 0.2.5__py3-none-any.whl → 0.2.6__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-siseli
3
- Version: 0.2.5
3
+ Version: 0.2.6
4
4
  Summary: Python SDK for Siseli Cloud
5
5
  License: MIT
6
6
  Requires-Python: >=3.11
@@ -3,7 +3,7 @@ siseli/_utils.py,sha256=p-H5_aoERNHljuik8CQMIP1noUS_ovBqrClApiViuf8,888
3
3
  siseli/alarms.py,sha256=Mc_CV8kUBFTXu8c48NstX8Lc6Q0bPTnhjwehx9sbCkQ,4853
4
4
  siseli/auth.py,sha256=I8WwJgy1go1MGxjowkVx-lvCtneh5rRtbs9DV9yO4T8,6470
5
5
  siseli/client.py,sha256=pOu6Jfbw9w80mIXfdpSqRaqQm84zcQjI9l2Y8Fbfy3c,16827
6
- siseli/config.py,sha256=D7-tuHtz3Ff3qxEni6El8_dpthTXlJxnm-F_glLcwnE,8075
6
+ siseli/config.py,sha256=LO8E9josIqKeRYMQAUNzIca7S99hZnhL7o-Q2VKcgIw,8133
7
7
  siseli/config_safety.py,sha256=l-VcCkfVI5oBfnHtHrCDyjLBOpFQo8EMOqV04ud8HJ8,12906
8
8
  siseli/const.py,sha256=9qk2YEaDELKmn7xRsvxlnHh9nUGFymN1DWnulfQG4w4,364
9
9
  siseli/dashboard.py,sha256=JQHfi8orKs5uWsGGfoTvA14A9M_R9yIAYuGCxb4zTsM,3325
@@ -26,7 +26,7 @@ siseli/models/dictionary.py,sha256=d6KCu77UMlPcIDON8G3sjuytkSfbI5go1y3I_jAGTX8,4
26
26
  siseli/models/history.py,sha256=dx26VWLJosucMvwL36vojvAguvkMiv5GEKTllUtZV0Y,791
27
27
  siseli/models/state.py,sha256=kDUYQtegbQhUK_pikEC6-T6MHj5Rrw5g3vDFFB-xR2Y,6744
28
28
  siseli/models/station.py,sha256=CxYqic6EHhE54eUvJMIltFvJgw_9gt5QX5rF_CjSL3U,2755
29
- python_siseli-0.2.5.dist-info/METADATA,sha256=zivP1i19ZOGjI_KX1VPmmnmEpyt9ryNmKk_NB7hJub0,1439
30
- python_siseli-0.2.5.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
31
- python_siseli-0.2.5.dist-info/top_level.txt,sha256=Dofr9c7hGvRRV6ij6aoPuAZqxEjkgtsBeN4KtFHbGgo,7
32
- python_siseli-0.2.5.dist-info/RECORD,,
29
+ python_siseli-0.2.6.dist-info/METADATA,sha256=bjFz072FP4T6wdCuPz4PesynH5j77AtCv_EPY6lJs9Q,1439
30
+ python_siseli-0.2.6.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
31
+ python_siseli-0.2.6.dist-info/top_level.txt,sha256=Dofr9c7hGvRRV6ij6aoPuAZqxEjkgtsBeN4KtFHbGgo,7
32
+ python_siseli-0.2.6.dist-info/RECORD,,
siseli/config.py CHANGED
@@ -65,7 +65,7 @@ async def fetch_device_config(
65
65
  "POST",
66
66
  "/apis/remote/device/config/read",
67
67
  params={"deviceId": device_id},
68
- json={"id": config_id, "key": key},
68
+ json={"id": config_id or device_id, "key": key},
69
69
  )
70
70
  return _parse_attribute_metadata(data, key)
71
71
 
@@ -86,7 +86,7 @@ async def write_device_config(
86
86
  "POST",
87
87
  "/apis/remote/device/config/write",
88
88
  params={"deviceId": device_id},
89
- json={"id": config_id, "key": key, "value": value},
89
+ json={"id": config_id or device_id, "key": key, "value": value},
90
90
  )
91
91
  if data is None:
92
92
  return None
@@ -104,6 +104,7 @@ async def fetch_cached_device_configs(
104
104
  "POST",
105
105
  "/apis/remote/device/configs/cache/get",
106
106
  params={"deviceId": device_id},
107
+ json={"id": device_id},
107
108
  )
108
109
  return _parse_config_map(data)
109
110