Skip to content

Commit eda7a7f

Browse files
committed
Add nfc-ethernet to PairingMode and DutPairingModeEnum
Mirrors the backend's app/constants/shared_constants.py so the CLI's enums stay in sync with the new NFC_ETHERNET pairing mode used for Matter-over-Ethernet commissioning over NFC in python_testing suites. Related: project-chip/certification-tool#1067
1 parent 937fc4c commit eda7a7f

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

tests/test_config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,9 @@ def test_ble_thread_value(self):
274274
def test_nfc_thread_value(self):
275275
assert PairingMode.NFC_THREAD.value == "nfc-thread"
276276

277+
def test_nfc_ethernet_value(self):
278+
assert PairingMode.NFC_ETHERNET.value == "nfc-ethernet"
279+
277280
def test_onnetwork_value(self):
278281
assert PairingMode.ONNETWORK.value == "onnetwork"
279282

th_cli/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ class PairingMode(str, Enum):
155155
BLE_THREAD = "ble-thread"
156156
WIFIPAF_WIFI = "wifipaf-wifi"
157157
NFC_THREAD = "nfc-thread"
158+
NFC_ETHERNET = "nfc-ethernet"
158159
ONNETWORK = "onnetwork"
159160

160161

th_cli/shared_constants.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ class DutPairingModeEnum(str, Enum):
6464
ON_NETWORK = "onnetwork"
6565
BLE_WIFI = "ble-wifi"
6666
NFC_WIFI = "nfc-wifi"
67+
NFC_ETHERNET = "nfc-ethernet"
6768
BLE_THREAD = "ble-thread"
6869
WIFIPAF_WIFI = "wifipaf-wifi"
6970
NFC_THREAD = "nfc-thread"
@@ -72,5 +73,6 @@ class DutPairingModeEnum(str, Enum):
7273

7374
NFC_PAIRING_MODES = {
7475
DutPairingModeEnum.NFC_WIFI.value,
76+
DutPairingModeEnum.NFC_ETHERNET.value,
7577
DutPairingModeEnum.NFC_THREAD.value,
7678
}

0 commit comments

Comments
 (0)