Upgrade black to 20.8b1 (#39287)

This commit is contained in:
Franck Nijhof authored and GitHub committed 2020-08-27 13:56:20 +02:00
1 parent 0d7eec710c
commit 1c2ebdf307
574 files changed
+4389 -1725

No files matched your search

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