diff --git a/matter_server/client/client.py b/matter_server/client/client.py index 34aa3db5..3367b152 100644 --- a/matter_server/client/client.py +++ b/matter_server/client/client.py @@ -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) diff --git a/matter_server/common/const.py b/matter_server/common/const.py index 93f33c27..ca8ef23e 100644 --- a/matter_server/common/const.py +++ b/matter_server/common/const.py @@ -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