Upgrade black to 20.8b1 (#39287)

This commit is contained in:
Franck Nijhof 2020-08-27 13:56:20 +02:00 committed by GitHub
parent 0d7eec710c
commit 1c2ebdf307
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
574 changed files with 4389 additions and 1725 deletions

View file

@ -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()

View file

@ -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()

View file

@ -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