python-siseli 0.2.4__tar.gz → 0.2.5__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.
- {python_siseli-0.2.4 → python_siseli-0.2.5}/PKG-INFO +1 -1
- {python_siseli-0.2.4 → python_siseli-0.2.5}/pyproject.toml +1 -1
- {python_siseli-0.2.4 → python_siseli-0.2.5}/python_siseli.egg-info/PKG-INFO +1 -1
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/config_safety.py +3 -7
- {python_siseli-0.2.4 → python_siseli-0.2.5}/tests/test_config_safety.py +4 -2
- {python_siseli-0.2.4 → python_siseli-0.2.5}/README.md +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/python_siseli.egg-info/SOURCES.txt +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/python_siseli.egg-info/dependency_links.txt +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/python_siseli.egg-info/requires.txt +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/python_siseli.egg-info/top_level.txt +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/setup.cfg +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/__init__.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/_utils.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/alarms.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/auth.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/client.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/config.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/const.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/dashboard.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/device.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/dictionary.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/exceptions.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/history.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/models/__init__.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/models/alarm.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/models/auth.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/models/common.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/models/config.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/models/dashboard.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/models/device.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/models/dictionary.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/models/history.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/models/state.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/models/station.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/open_auth.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/overview.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/state.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/siseli/station.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/tests/test_auth.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/tests/test_normalized_telemetry.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/tests/test_open_auth.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/tests/test_overview.py +0 -0
- {python_siseli-0.2.4 → python_siseli-0.2.5}/tests/test_phase3.py +0 -0
|
@@ -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",
|
|
@@ -75,8 +75,10 @@ def test_unsupported_key_rejected():
|
|
|
75
75
|
def test_access_levels():
|
|
76
76
|
assert validate_config_value("buzzerEnabled", True) == "1"
|
|
77
77
|
with pytest.raises(ConfigAccessDenied):
|
|
78
|
-
validate_config_value("
|
|
79
|
-
assert validate_config_value("
|
|
78
|
+
validate_config_value("settingDeviceGridWorkingRange", "1")
|
|
79
|
+
assert validate_config_value("settingDeviceGridWorkingRange", 1, access=ConfigAccess.ADVANCED) == "1"
|
|
80
|
+
with pytest.raises(ConfigValidationError):
|
|
81
|
+
validate_config_value("settingDeviceOutputSourcePriority", "0", access=ConfigAccess.CRITICAL)
|
|
80
82
|
with pytest.raises(ConfigAccessDenied):
|
|
81
83
|
validate_config_value(
|
|
82
84
|
"setBatteryCutOffVoltage",
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|