Update byte string formatting (#112752)
This commit is contained in:
parent
0e86f182cc
commit
959826c4b4
7 changed files with 33 additions and 33 deletions
|
@ -59,7 +59,7 @@ async def test_event_long_press(hass: HomeAssistant) -> None:
|
|||
# Emit long press event
|
||||
inject_bluetooth_service_info_bleak(
|
||||
hass,
|
||||
make_bthome_v2_adv(mac, b"\x40\x3A\x04"),
|
||||
make_bthome_v2_adv(mac, b"\x40\x3a\x04"),
|
||||
)
|
||||
|
||||
# wait for the event
|
||||
|
@ -82,7 +82,7 @@ async def test_event_rotate_dimmer(hass: HomeAssistant) -> None:
|
|||
# Emit rotate dimmer 3 steps left event
|
||||
inject_bluetooth_service_info_bleak(
|
||||
hass,
|
||||
make_bthome_v2_adv(mac, b"\x40\x3C\x01\x03"),
|
||||
make_bthome_v2_adv(mac, b"\x40\x3c\x01\x03"),
|
||||
)
|
||||
|
||||
# wait for the event
|
||||
|
@ -105,7 +105,7 @@ async def test_get_triggers_button(hass: HomeAssistant) -> None:
|
|||
# Emit long press event so it creates the device in the registry
|
||||
inject_bluetooth_service_info_bleak(
|
||||
hass,
|
||||
make_bthome_v2_adv(mac, b"\x40\x3A\x04"),
|
||||
make_bthome_v2_adv(mac, b"\x40\x3a\x04"),
|
||||
)
|
||||
|
||||
# wait for the event
|
||||
|
@ -141,7 +141,7 @@ async def test_get_triggers_dimmer(hass: HomeAssistant) -> None:
|
|||
# Emit rotate left with 3 steps event so it creates the device in the registry
|
||||
inject_bluetooth_service_info_bleak(
|
||||
hass,
|
||||
make_bthome_v2_adv(mac, b"\x40\x3C\x01\x03"),
|
||||
make_bthome_v2_adv(mac, b"\x40\x3c\x01\x03"),
|
||||
)
|
||||
|
||||
# wait for the event
|
||||
|
@ -237,7 +237,7 @@ async def test_if_fires_on_motion_detected(hass: HomeAssistant, calls) -> None:
|
|||
# Emit a button event so it creates the device in the registry
|
||||
inject_bluetooth_service_info_bleak(
|
||||
hass,
|
||||
make_bthome_v2_adv(mac, b"\x40\x3A\x03"),
|
||||
make_bthome_v2_adv(mac, b"\x40\x3a\x03"),
|
||||
)
|
||||
|
||||
# # wait for the event
|
||||
|
@ -272,7 +272,7 @@ async def test_if_fires_on_motion_detected(hass: HomeAssistant, calls) -> None:
|
|||
# Emit long press event
|
||||
inject_bluetooth_service_info_bleak(
|
||||
hass,
|
||||
make_bthome_v2_adv(mac, b"\x40\x3A\x04"),
|
||||
make_bthome_v2_adv(mac, b"\x40\x3a\x04"),
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue