Commit 0341448 1 parent 20fe60f commit 0341448 Copy full SHA for 0341448
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ class DeviceEntry:
203
203
),
204
204
0x38BB : DeviceEntry (
205
205
name = "Wireless Switch" ,
206
- model = "PTX " ,
206
+ model = "PTX_YK1_QMIMB " ,
207
207
),
208
208
0x0153 : DeviceEntry (
209
209
name = "Remote Control" ,
Original file line number Diff line number Diff line change @@ -2942,7 +2942,7 @@ def test_Xiaomi_XMPIRO2SXS():
2942
2942
2943
2943
2944
2944
def test_Xiaomi_PTX_press ():
2945
- """Test Xiaomi parser for Xiaomi PTX."""
2945
+ """Test Xiaomi parser for Xiaomi PTX YK1 QMIMB ."""
2946
2946
bindkey = "a74510b40386d35ae6227a7451efc76e"
2947
2947
data_string = b"XY\xbb 8\x04 \xad \xb9 \xa5 8\xc1 \xa4 \xdc \x10 \xb5 \x04 \x00 \x00 ,\x12 /\xb6 "
2948
2948
advertisement = bytes_to_service_info (data_string , address = "A4:C1:38:A5:B9:AD" )
@@ -2951,12 +2951,12 @@ def test_Xiaomi_PTX_press():
2951
2951
assert device .supported (advertisement )
2952
2952
assert device .bindkey_verified
2953
2953
assert device .update (advertisement ) == SensorUpdate (
2954
- title = "Wireless Switch B9AD (PTX )" ,
2954
+ title = "Wireless Switch B9AD (PTX_YK1_QMIMB )" ,
2955
2955
devices = {
2956
2956
None : SensorDeviceInfo (
2957
2957
name = "Wireless Switch B9AD" ,
2958
2958
manufacturer = "Xiaomi" ,
2959
- model = "PTX " ,
2959
+ model = "PTX_YK1_QMIMB " ,
2960
2960
hw_version = None ,
2961
2961
sw_version = "Xiaomi (MiBeacon V5 encrypted)" ,
2962
2962
)
You can’t perform that action at this time.
0 commit comments