@@ -443,7 +443,7 @@ def test_bthome_illuminance(caplog):
443
443
444
444
def test_bthome_mass_kilograms (caplog ):
445
445
"""Test BTHome parser for mass reading in kilograms without encryption."""
446
- data_string = b"\x43 \x06 \xFE \x70 "
446
+ data_string = b"\x43 \x06 \xfe \x70 "
447
447
advertisement = bytes_to_service_info (
448
448
data_string , local_name = "TEST DEVICE" , address = "A4:C1:38:8D:18:B2"
449
449
)
@@ -485,7 +485,7 @@ def test_bthome_mass_kilograms(caplog):
485
485
486
486
def test_bthome_mass_pounds (caplog ):
487
487
"""Test BTHome parser for mass reading in pounds without encryption."""
488
- data_string = b"\x03 \x07 \x3E \x1d "
488
+ data_string = b"\x03 \x07 \x3e \x1d "
489
489
advertisement = bytes_to_service_info (
490
490
data_string , local_name = "TEST DEVICE" , address = "A4:C1:38:8D:18:B2"
491
491
)
@@ -525,7 +525,7 @@ def test_bthome_mass_pounds(caplog):
525
525
526
526
def test_bthome_dew_point (caplog ):
527
527
"""Test BTHome parser for dew point reading without encryption."""
528
- data_string = b"\x23 \x08 \xCA \x06 "
528
+ data_string = b"\x23 \x08 \xca \x06 "
529
529
advertisement = bytes_to_service_info (
530
530
data_string , local_name = "TEST DEVICE" , address = "A4:C1:38:8D:18:B2"
531
531
)
@@ -733,7 +733,7 @@ def test_bthome_voltage(caplog):
733
733
734
734
def test_bthome_binary_sensor (caplog ):
735
735
"""Test BTHome parser for binary sensor without device class, without encryption."""
736
- data_string = b"\x02 \x0F \x01 "
736
+ data_string = b"\x02 \x0f \x01 "
737
737
advertisement = bytes_to_service_info (
738
738
data_string , local_name = "TEST DEVICE" , address = "A4:C1:38:8D:18:B2"
739
739
)
@@ -963,7 +963,7 @@ def test_bthome_co2(caplog):
963
963
964
964
def test_bthome_timestamp (caplog ):
965
965
"""Test BTHome parser for Unix timestamp (seconds from 1-1-1970)."""
966
- data_string = b"\xA5 \x50 \x5D \x39 \x61 \x64 "
966
+ data_string = b"\xa5 \x50 \x5d \x39 \x61 \x64 "
967
967
advertisement = bytes_to_service_info (
968
968
data_string , local_name = "TEST DEVICE" , address = "A4:C1:38:8D:18:B2"
969
969
)
@@ -1092,7 +1092,7 @@ def test_bthome_moisture(caplog):
1092
1092
1093
1093
def test_bthome_event_button_long_press (caplog ):
1094
1094
"""Test BTHome parser for an event of a long press on a button without encryption."""
1095
- data_string = b"\x02 \x3A \x04 "
1095
+ data_string = b"\x02 \x3a \x04 "
1096
1096
advertisement = bytes_to_service_info (
1097
1097
data_string , local_name = "TEST DEVICE" , address = "A4:C1:38:8D:18:B2"
1098
1098
)
@@ -1135,7 +1135,7 @@ def test_bthome_event_button_long_press(caplog):
1135
1135
1136
1136
def test_bthome_event_dimmer_rotate_left_3_steps (caplog ):
1137
1137
"""Test BTHome parser for an event rotating a dimmer 3 steps left."""
1138
- data_string = b"\x03 \x3C \x01 \x03 "
1138
+ data_string = b"\x03 \x3c \x01 \x03 "
1139
1139
advertisement = bytes_to_service_info (
1140
1140
data_string , local_name = "TEST DEVICE" , address = "A4:C1:38:8D:18:B2"
1141
1141
)
0 commit comments