Skip to content

Commit

Permalink
Bump schema version to 6 (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Dec 22, 2023
1 parent dfdebec commit 17020c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion matter_server/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ async def commission_with_code(
:return: The NodeInfo of the commissioned device.
"""
data = await self.send_command(
APICommand.COMMISSION_WITH_CODE, code=code, network_only=network_only
APICommand.COMMISSION_WITH_CODE,
require_schema=6 if network_only else None,
code=code,
network_only=network_only,
)
return dataclass_from_dict(MatterNodeData, data)

Expand Down
2 changes: 1 addition & 1 deletion matter_server/common/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

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

0 comments on commit 17020c0

Please sign in to comment.