mirror of
https://github.com/home-assistant/core.git
synced 2025-06-25 01:21:51 +02:00
Fix Z-Wave USB flow test warning (#143956)
This commit is contained in:
@ -1210,7 +1210,7 @@ async def test_abort_usb_discovery_with_existing_flow(
|
|||||||
assert result2["reason"] == "already_in_progress"
|
assert result2["reason"] == "already_in_progress"
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.usefixtures("supervisor", "addon_options")
|
@pytest.mark.usefixtures("supervisor", "addon_installed")
|
||||||
async def test_usb_discovery_with_existing_usb_flow(hass: HomeAssistant) -> None:
|
async def test_usb_discovery_with_existing_usb_flow(hass: HomeAssistant) -> None:
|
||||||
"""Test usb discovery allows more than one USB flow in progress."""
|
"""Test usb discovery allows more than one USB flow in progress."""
|
||||||
first_usb_info = UsbServiceInfo(
|
first_usb_info = UsbServiceInfo(
|
||||||
@ -1244,6 +1244,11 @@ async def test_usb_discovery_with_existing_usb_flow(hass: HomeAssistant) -> None
|
|||||||
|
|
||||||
assert len(usb_flows_in_progress) == 2
|
assert len(usb_flows_in_progress) == 2
|
||||||
|
|
||||||
|
for flow in (result, result2):
|
||||||
|
hass.config_entries.flow.async_abort(flow["flow_id"])
|
||||||
|
|
||||||
|
assert len(hass.config_entries.flow.async_progress()) == 0
|
||||||
|
|
||||||
|
|
||||||
async def test_abort_usb_discovery_addon_required(
|
async def test_abort_usb_discovery_addon_required(
|
||||||
hass: HomeAssistant, supervisor, addon_options
|
hass: HomeAssistant, supervisor, addon_options
|
||||||
|
Reference in New Issue
Block a user