feat(bms): add read-only diagnostics and guarded operating switch commands
This commit is contained in:
@@ -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"})
|
||||
|
||||
Reference in New Issue
Block a user