python-siseli 0.2.4__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.
- {python_siseli-0.2.4.dist-info → python_siseli-0.2.6.dist-info}/METADATA +1 -1
- {python_siseli-0.2.4.dist-info → python_siseli-0.2.6.dist-info}/RECORD +6 -6
- siseli/config.py +3 -2
- siseli/config_safety.py +3 -7
- {python_siseli-0.2.4.dist-info → python_siseli-0.2.6.dist-info}/WHEEL +0 -0
- {python_siseli-0.2.4.dist-info → python_siseli-0.2.6.dist-info}/top_level.txt +0 -0
|
@@ -3,8 +3,8 @@ 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=
|
|
7
|
-
siseli/config_safety.py,sha256=
|
|
6
|
+
siseli/config.py,sha256=LO8E9josIqKeRYMQAUNzIca7S99hZnhL7o-Q2VKcgIw,8133
|
|
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
|
|
10
10
|
siseli/device.py,sha256=crix14pYakrDaFmomPC3Uwgdq-1boZ-ZaEg2HgzXibs,2762
|
|
@@ -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.
|
|
30
|
-
python_siseli-0.2.
|
|
31
|
-
python_siseli-0.2.
|
|
32
|
-
python_siseli-0.2.
|
|
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
|
|
siseli/config_safety.py
CHANGED
|
@@ -90,13 +90,9 @@ CONFIG_SPECS: dict[str, ConfigSpec] = {
|
|
|
90
90
|
ConfigSpec("overloadBypass", "Overload bypass", ConfigKind.ENUM, ConfigAccess.ADVANCED, _ON_OFF),
|
|
91
91
|
ConfigSpec("powerSavingEnable", "Power saving", ConfigKind.ENUM, ConfigAccess.ADVANCED, _ON_OFF),
|
|
92
92
|
ConfigSpec("setBatteryEqualizationEnable", "Battery equalization", ConfigKind.ENUM, ConfigAccess.ADVANCED, _ON_OFF),
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
ConfigKind.ENUM,
|
|
97
|
-
ConfigAccess.ADVANCED,
|
|
98
|
-
{"0": "Utility first", "1": "Solar first", "2": "SBU"},
|
|
99
|
-
),
|
|
93
|
+
# settingDeviceOutputSourcePriority is intentionally absent: in the cloud,
|
|
94
|
+
# value 0 is displayed as "SUB" (SBU), which contradicts the PI30 order,
|
|
95
|
+
# and the full value mapping is not verified. Add it only once confirmed.
|
|
100
96
|
ConfigSpec(
|
|
101
97
|
"settingDeviceChargerPriority",
|
|
102
98
|
"Charger source priority",
|
|
File without changes
|
|
File without changes
|