Upgrade black to 20.8b1 (#39287)
This commit is contained in:
parent
0d7eec710c
commit
1c2ebdf307
574 changed files with 4389 additions and 1725 deletions
|
@ -28,7 +28,11 @@ async def test_homeassistant_bridge_fan_setup(hass):
|
|||
assert fan.unique_id == "homekit-fan.living_room_fan-8"
|
||||
|
||||
fan_helper = Helper(
|
||||
hass, "fan.living_room_fan", pairing, accessories[0], config_entry,
|
||||
hass,
|
||||
"fan.living_room_fan",
|
||||
pairing,
|
||||
accessories[0],
|
||||
config_entry,
|
||||
)
|
||||
|
||||
fan_state = await fan_helper.poll_and_get_state()
|
||||
|
|
|
@ -26,7 +26,11 @@ async def test_simpleconnect_fan_setup(hass):
|
|||
assert fan.unique_id == "homekit-1234567890abcd-8"
|
||||
|
||||
fan_helper = Helper(
|
||||
hass, "fan.simpleconnect_fan_06f674", pairing, accessories[0], config_entry,
|
||||
hass,
|
||||
"fan.simpleconnect_fan_06f674",
|
||||
pairing,
|
||||
accessories[0],
|
||||
config_entry,
|
||||
)
|
||||
|
||||
fan_state = await fan_helper.poll_and_get_state()
|
||||
|
|
|
@ -102,7 +102,10 @@ async def test_turn_off(hass, utcnow):
|
|||
helper.characteristics[V1_ON].value = 1
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan", "turn_off", {"entity_id": "fan.testdevice"}, blocking=True,
|
||||
"fan",
|
||||
"turn_off",
|
||||
{"entity_id": "fan.testdevice"},
|
||||
blocking=True,
|
||||
)
|
||||
assert helper.characteristics[V1_ON].value == 0
|
||||
|
||||
|
@ -255,7 +258,10 @@ async def test_v2_turn_off(hass, utcnow):
|
|||
helper.characteristics[V2_ACTIVE].value = 1
|
||||
|
||||
await hass.services.async_call(
|
||||
"fan", "turn_off", {"entity_id": "fan.testdevice"}, blocking=True,
|
||||
"fan",
|
||||
"turn_off",
|
||||
{"entity_id": "fan.testdevice"},
|
||||
blocking=True,
|
||||
)
|
||||
assert helper.characteristics[V2_ACTIVE].value == 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue