diff --git a/tests/components/matter/test_init.py b/tests/components/matter/test_init.py index a3febe799a5..b691e0a766b 100644 --- a/tests/components/matter/test_init.py +++ b/tests/components/matter/test_init.py @@ -83,7 +83,7 @@ async def test_home_assistant_stop( assert matter_client.disconnect.call_count == 1 -@pytest.mark.parametrize("error", [CannotConnect("Boom"), Exception("Boom")]) +@pytest.mark.parametrize("error", [CannotConnect(Exception("Boom")), Exception("Boom")]) async def test_connect_failed( hass: HomeAssistant, matter_client: MagicMock,