Skip to content

Commit 7021bee

Browse files
committed
Rewrite test for M1S-T500
1 parent 509b393 commit 7021bee

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__pycache__
2-
idea/
2+
.idea/
33
.idea/workspace.xml
44
.idea/vcs.xml
55
.idea/inspectionProfiles/Project_Default.xml

custom_components/ble_monitor/test/test_xiaomi_parser.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,8 @@ def test_Xiaomi_M1S_T500(self):
321321
assert sensor_msg["mac"] == "E67143175B11"
322322
assert sensor_msg["packet"] == 55
323323
assert sensor_msg["data"]
324-
assert sensor_msg["toothbrush mode"] == 3
324+
assert sensor_msg["toothbrush"] == 1
325+
assert sensor_msg["counter"] == 3
325326
assert sensor_msg["rssi"] == -36
326327

327328
def test_Xiaomi_ZNMS16LM_fingerprint(self):

0 commit comments

Comments
 (0)