What Alan said ^^
The inlet boot runs under vacuum so a leak will allow air to be sucked in, the fact it’s unmetered air (downstream of the maf) causes the lean running codes.
It’s easy to change, just a bit fiddly leaning over & positioning the clips correctly.
Edit, was the hose you replaced the one with the bifurcated finger attached?
Rob