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

@ -50,7 +50,8 @@ async def test_invalid_password(hass):
flow.context = {"source": SOURCE_USER}
with patch(
"regenmaschine.client.Client.load_local", side_effect=RainMachineError,
"regenmaschine.client.Client.load_local",
side_effect=RainMachineError,
):
result = await flow.async_step_user(user_input=conf)
assert result["errors"] == {CONF_PASSWORD: "invalid_credentials"}
@ -83,7 +84,8 @@ async def test_step_import(hass):
flow.context = {"source": SOURCE_USER}
with patch(
"regenmaschine.client.Client.load_local", return_value=True,
"regenmaschine.client.Client.load_local",
return_value=True,
):
result = await flow.async_step_import(import_config=conf)
@ -114,7 +116,8 @@ async def test_step_user(hass):
flow.context = {"source": SOURCE_USER}
with patch(
"regenmaschine.client.Client.load_local", return_value=True,
"regenmaschine.client.Client.load_local",
return_value=True,
):
result = await flow.async_step_user(user_input=conf)