Skip to content

Commit 17020c0

Browse files
authored
Bump schema version to 6 (#473)
1 parent dfdebec commit 17020c0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

matter_server/client/client.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ async def commission_with_code(
123123
:return: The NodeInfo of the commissioned device.
124124
"""
125125
data = await self.send_command(
126-
APICommand.COMMISSION_WITH_CODE, code=code, network_only=network_only
126+
APICommand.COMMISSION_WITH_CODE,
127+
require_schema=6 if network_only else None,
128+
code=code,
129+
network_only=network_only,
127130
)
128131
return dataclass_from_dict(MatterNodeData, data)
129132

matter_server/common/const.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
# schema version is used to determine compatibility between server and client
44
# bump schema if we add new features and/or make other (breaking) changes
5-
SCHEMA_VERSION = 5
5+
SCHEMA_VERSION = 6

0 commit comments

Comments
 (0)