feat(bms): add read-only diagnostics and guarded operating switch commands

This commit is contained in:
DCCONSTRUCTIONS
2026-11-04 17:14:54 +03:00
parent ab8e977f11
commit 42213001ba
19 changed files with 919 additions and 40 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ def test_identity_allowlist_and_candidate_are_not_compatibility():
data[:5] = HEADER + b"\x03"
data[6:18] = b"JK_BD6A17S6P"
data[30:35] = b"11.47"
data[90:96] = b"SECRET"
data[97:103] = b"SECRET"
info = identity(data)
assert supported(info) and "SECRET" not in json.dumps(info)
assert not supported({**info, "firmware": "14.00"})