mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Upgrade black to 20.8b1 (#39287)
This commit is contained in:
@@ -53,7 +53,8 @@ async def test_user_flow(detect_mock, hass):
|
||||
|
||||
@patch("serial.tools.list_ports.comports", MagicMock(return_value=[com_port()]))
|
||||
@patch(
|
||||
"homeassistant.components.zha.config_flow.detect_radios", return_value=None,
|
||||
"homeassistant.components.zha.config_flow.detect_radios",
|
||||
return_value=None,
|
||||
)
|
||||
async def test_user_flow_not_detected(detect_mock, hass):
|
||||
"""Test user flow, radio not detected."""
|
||||
@@ -76,7 +77,8 @@ async def test_user_flow_not_detected(detect_mock, hass):
|
||||
async def test_user_flow_show_form(hass):
|
||||
"""Test user step form."""
|
||||
result = await hass.config_entries.flow.async_init(
|
||||
DOMAIN, context={CONF_SOURCE: SOURCE_USER},
|
||||
DOMAIN,
|
||||
context={CONF_SOURCE: SOURCE_USER},
|
||||
)
|
||||
|
||||
assert result["type"] == RESULT_TYPE_FORM
|
||||
@@ -163,7 +165,8 @@ async def test_user_port_config_fail(probe_mock, hass):
|
||||
)
|
||||
|
||||
result = await hass.config_entries.flow.async_configure(
|
||||
result["flow_id"], user_input={zigpy.config.CONF_DEVICE_PATH: "/dev/ttyUSB33"},
|
||||
result["flow_id"],
|
||||
user_input={zigpy.config.CONF_DEVICE_PATH: "/dev/ttyUSB33"},
|
||||
)
|
||||
assert result["type"] == RESULT_TYPE_FORM
|
||||
assert result["step_id"] == "port_config"
|
||||
@@ -184,7 +187,8 @@ async def test_user_port_config(probe_mock, hass):
|
||||
)
|
||||
|
||||
result = await hass.config_entries.flow.async_configure(
|
||||
result["flow_id"], user_input={zigpy.config.CONF_DEVICE_PATH: "/dev/ttyUSB33"},
|
||||
result["flow_id"],
|
||||
user_input={zigpy.config.CONF_DEVICE_PATH: "/dev/ttyUSB33"},
|
||||
)
|
||||
|
||||
assert result["type"] == "create_entry"
|
||||
|
||||
Reference in New Issue
Block a user