@@ -957,7 +957,7 @@ def test_linptech_ES3_illuminance(self):
957957 assert sensor_msg ["illuminance" ] == 173.0
958958 assert sensor_msg ["rssi" ] == - 58
959959
960- def test_linptech_ES3_motion (self ):
960+ def test_linptech_ES3_occupancy (self ):
961961 """Test Xiaomi parser for linptech ES3."""
962962 self .aeskeys = {}
963963 data_string = "043E290201000176c3c738c1a41D020106191695fe5859fb50da76c3c738c1a4aabc4c16000000c60c1646C6"
@@ -980,12 +980,11 @@ def test_linptech_ES3_motion(self):
980980 assert sensor_msg ["mac" ] == "A4C138C7C376"
981981 assert sensor_msg ["packet" ] == 218
982982 assert sensor_msg ["data" ]
983- assert sensor_msg ["motion" ] == 1
984- assert sensor_msg ["motion timer" ] == 1
983+ assert sensor_msg ["occupancy" ] == 1
985984 assert sensor_msg ["rssi" ] == - 58
986985
987986 def test_linptech_ES3_data_only_motion_clear (self ):
988- """Test Xiaomi parser for linptech ES3 data-only frame (implicit motion clear) ."""
987+ """Test Xiaomi parser for linptech ES3 data-only frame."""
989988 self .aeskeys = {}
990989 # This is a real data-only frame for ES3 with MAC A4:C1:38:A4:88:8A
991990 data_string = "043e29020100018a88a438c1a41d020106191695fe5859fb50328a88a438c1a4458a85b796000048fe13bac6"
@@ -1008,7 +1007,7 @@ def test_linptech_ES3_data_only_motion_clear(self):
10081007 assert sensor_msg ["mac" ] == "A4C138A4888A"
10091008 assert sensor_msg ["packet" ] == 50
10101009 assert sensor_msg ["data" ]
1011- assert sensor_msg ["motion " ] == 0 # Should be implicitly set to 0 for data-only frames
1010+ assert sensor_msg ["occupancy " ] == 0 # Should be implicitly set to 0 for data-only frames
10121011 assert sensor_msg ["rssi" ] == - 58
10131012
10141013 def test_MJZNZ018H_bed_occupancy (self ):
0 commit comments