Fix Z-Wave USB flow test warning (#143956)

This commit is contained in:
Martin Hjelmare
2025-04-30 16:14:44 +02:00
committed by GitHub
parent 5b0ea21607
commit 80e4f19172

View File

@ -1210,7 +1210,7 @@ async def test_abort_usb_discovery_with_existing_flow(
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:
"""Test usb discovery allows more than one USB flow in progress."""
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
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(
hass: HomeAssistant, supervisor, addon_options