Upgrade black to 20.8b1 (#39287)
This commit is contained in:
1 parent
0d7eec710c
commit
1c2ebdf307
574 files changed
+4389
-1725
No files matched your search
@@ -68,7 +68,8 @@ async def test_manual_configuration_update_configuration(hass):
|
||||
assert result["step_id"] == "user"
|
||||
|
||||
with patch(
|
||||
"homeassistant.components.axis.async_setup_entry", return_value=True,
|
||||
"homeassistant.components.axis.async_setup_entry",
|
||||
return_value=True,
|
||||
) as mock_setup_entry, patch(
|
||||
"axis.vapix.session_request", new=vapix_session_request
|
||||
):
|
||||
@@ -170,11 +171,13 @@ async def test_flow_fails_device_unavailable(hass):
|
||||
async def test_flow_create_entry_multiple_existing_entries_of_same_model(hass):
|
||||
"""Test that create entry can generate a name with other entries."""
|
||||
entry = MockConfigEntry(
|
||||
domain=AXIS_DOMAIN, data={CONF_NAME: "M1065-LW 0", CONF_MODEL: "M1065-LW"},
|
||||
domain=AXIS_DOMAIN,
|
||||
data={CONF_NAME: "M1065-LW 0", CONF_MODEL: "M1065-LW"},
|
||||
)
|
||||
entry.add_to_hass(hass)
|
||||
entry2 = MockConfigEntry(
|
||||
domain=AXIS_DOMAIN, data={CONF_NAME: "M1065-LW 1", CONF_MODEL: "M1065-LW"},
|
||||
domain=AXIS_DOMAIN,
|
||||
data={CONF_NAME: "M1065-LW 1", CONF_MODEL: "M1065-LW"},
|
||||
)
|
||||
entry2.add_to_hass(hass)
|
||||
|
||||
@@ -289,7 +292,8 @@ async def test_zeroconf_flow_updated_configuration(hass):
|
||||
}
|
||||
|
||||
with patch(
|
||||
"homeassistant.components.axis.async_setup_entry", return_value=True,
|
||||
"homeassistant.components.axis.async_setup_entry",
|
||||
return_value=True,
|
||||
) as mock_setup_entry, patch(
|
||||
"axis.vapix.session_request", new=vapix_session_request
|
||||
):
|
||||
@@ -359,7 +363,8 @@ async def test_option_flow(hass):
|
||||
}
|
||||
|
||||
result = await hass.config_entries.options.async_configure(
|
||||
result["flow_id"], user_input={CONF_STREAM_PROFILE: "profile_1"},
|
||||
result["flow_id"],
|
||||
user_input={CONF_STREAM_PROFILE: "profile_1"},
|
||||
)
|
||||
|
||||
assert result["type"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY
|
||||
|
||||
Reference in new issue
Block a user