Upgrade black to 20.8b1 (#39287)
This commit is contained in:
parent
0d7eec710c
commit
1c2ebdf307
574 changed files with 4389 additions and 1725 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue