Skip to content

Commit 857bb0c

Browse files
authored
Correct Meter and Meter Pro modelFriendlyName (#348)
1 parent 075ba18 commit 857bb0c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

switchbot/adv_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ class SwitchbotSupportedType(TypedDict):
115115
},
116116
"4": {
117117
"modelName": SwitchbotModel.METER_PRO,
118-
"modelFriendlyName": "Meter",
118+
"modelFriendlyName": "Meter Pro",
119119
"func": process_wosensorth,
120120
"manufacturer_id": 2409,
121121
},
122122
"5": {
123123
"modelName": SwitchbotModel.METER_PRO_C,
124-
"modelFriendlyName": "Meter",
124+
"modelFriendlyName": "Meter Pro CO2",
125125
"func": process_wosensorth_c,
126126
"manufacturer_id": 2409,
127127
},

tests/test_adv_parser.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,7 @@ def test_meter_pro_active() -> None:
13091309
},
13101310
"isEncrypted": False,
13111311
"model": "4",
1312-
"modelFriendlyName": "Meter",
1312+
"modelFriendlyName": "Meter Pro",
13131313
"modelName": SwitchbotModel.METER_PRO,
13141314
"rawAdvData": b"4\x00d",
13151315
},
@@ -1338,7 +1338,7 @@ def test_meter_pro_passive() -> None:
13381338
},
13391339
"isEncrypted": False,
13401340
"model": "4",
1341-
"modelFriendlyName": "Meter",
1341+
"modelFriendlyName": "Meter Pro",
13421342
"modelName": SwitchbotModel.METER_PRO,
13431343
"rawAdvData": None,
13441344
},
@@ -1371,7 +1371,7 @@ def test_meter_pro_c_active() -> None:
13711371
},
13721372
"isEncrypted": False,
13731373
"model": "5",
1374-
"modelFriendlyName": "Meter",
1374+
"modelFriendlyName": "Meter Pro CO2",
13751375
"modelName": SwitchbotModel.METER_PRO_C,
13761376
"rawAdvData": b"5\x00d",
13771377
},
@@ -1403,7 +1403,7 @@ def test_meter_pro_c_passive() -> None:
14031403
},
14041404
"isEncrypted": False,
14051405
"model": "5",
1406-
"modelFriendlyName": "Meter",
1406+
"modelFriendlyName": "Meter Pro CO2",
14071407
"modelName": SwitchbotModel.METER_PRO_C,
14081408
"rawAdvData": None,
14091409
},

0 commit comments

Comments
 (0)