How to roll back version?

I tried adding

esphome_version: v2022.4.0 

but its still using 2022.5.1
followed this guide

last week esp32’s were installing fine , now nothing wants to build

Tried adding it where?