Skip to content

Commit 4f2ee01

Browse files
raman325claude
andauthored
Bump MAX_SERVER_SCHEMA_VERSION to 45 (#1402)
Schema 45 in upstream zwave-js-server fixes JSON serialization of Map objects in responses (notably controller.get_known_lifeline_routes) and adds the `node info received` node event. The Python lib already expects the correct dict shape for those responses, and the event was added in #1329, so this PR only needs to advertise the new ceiling. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 268d60b commit 4f2ee01

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

test/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def version_data_fixture() -> dict[str, Any]:
262262
"serverVersion": "test_server_version",
263263
"homeId": "test_home_id",
264264
"minSchemaVersion": 0,
265-
"maxSchemaVersion": 44,
265+
"maxSchemaVersion": 45,
266266
}
267267

268268

test/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ async def test_additional_user_agent_components(client_session, url):
463463
{
464464
"command": "initialize",
465465
"messageId": "initialize",
466-
"schemaVersion": 44,
466+
"schemaVersion": 45,
467467
"additionalUserAgentComponents": {
468468
"zwave-js-server-python": __version__,
469469
"foo": "bar",

test/test_dump.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ async def test_dump_additional_user_agent_components(
106106
{
107107
"command": "initialize",
108108
"messageId": "initialize",
109-
"schemaVersion": 44,
109+
"schemaVersion": 45,
110110
"additionalUserAgentComponents": {
111111
"zwave-js-server-python": __version__,
112112
"foo": "bar",

test/test_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def test_dump_state(
5858
assert captured.out == (
5959
"{'type': 'version', 'driverVersion': 'test_driver_version', "
6060
"'serverVersion': 'test_server_version', 'homeId': 'test_home_id', "
61-
"'minSchemaVersion': 0, 'maxSchemaVersion': 44}\n"
61+
"'minSchemaVersion': 0, 'maxSchemaVersion': 45}\n"
6262
"{'type': 'result', 'success': True, 'result': {}, 'messageId': 'initialize'}\n"
6363
"test_result\n"
6464
)

zwave_js_server/const/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# minimal server schema version we can handle
1414
MIN_SERVER_SCHEMA_VERSION = 44
1515
# max server schema version we can handle (and our code is compatible with)
16-
MAX_SERVER_SCHEMA_VERSION = 44
16+
MAX_SERVER_SCHEMA_VERSION = 45
1717

1818
VALUE_UNKNOWN = "unknown"
1919

0 commit comments

Comments
 (0)