File tree Expand file tree Collapse file tree 2 files changed +0
-38
lines changed Expand file tree Collapse file tree 2 files changed +0
-38
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,6 @@ class SwitchbotSupportedType(TypedDict):
6969 "modelFriendlyName" : "Light Strip" ,
7070 "func" : process_wostrip ,
7171 "manufacturer_id" : 2409 ,
72- "manufacturer_data_length" : 16 ,
7372 },
7473 "{" : {
7574 "modelName" : SwitchbotModel .CURTAIN ,
Original file line number Diff line number Diff line change @@ -807,43 +807,6 @@ def test_bulb_active():
807807 )
808808
809809
810- def test_lightstrip_passive ():
811- """Test parsing lightstrip as passive."""
812- ble_device = generate_ble_device ("aa:bb:cc:dd:ee:ff" , "any" )
813- adv_data = generate_advertisement_data (
814- manufacturer_data = {
815- 2409 : b"`U\xf9 (\xe5 \x96 \x00 d\x02 \xb0 \x00 \x00 \x00 \x00 \x00 \x00 "
816- },
817- service_data = {},
818- tx_power = - 127 ,
819- rssi = - 50 ,
820- )
821- result = parse_advertisement_data (ble_device , adv_data )
822- assert result == SwitchBotAdvertisement (
823- address = "aa:bb:cc:dd:ee:ff" ,
824- data = {
825- "data" : {
826- "brightness" : 100 ,
827- "color_mode" : 2 ,
828- "delay" : False ,
829- "isOn" : False ,
830- "loop_index" : 0 ,
831- "preset" : False ,
832- "sequence_number" : 0 ,
833- "speed" : 48 ,
834- },
835- "isEncrypted" : False ,
836- "model" : "r" ,
837- "modelFriendlyName" : "Light Strip" ,
838- "modelName" : SwitchbotModel .LIGHT_STRIP ,
839- "rawAdvData" : None ,
840- },
841- device = ble_device ,
842- rssi = - 50 ,
843- active = False ,
844- )
845-
846-
847810def test_wosensor_passive_and_active ():
848811 """Test parsing wosensor as passive with active data as well."""
849812 ble_device = generate_ble_device ("aa:bb:cc:dd:ee:ff" , "any" )
You can’t perform that action at this time.
0 commit comments