The waveshare-esp32-p4-wifi6-touch-lcd-7 is part of the waveshare-esp32-p4-wifi6-touch-lcd-X family. There is a 7", 8" and 10.1" screen that are all similar expect the size.
This is a really good screen for ESPHome with a mic and speaker built in.
I don’t have one of these screens so I am just going by the docs from Waveshare. I just fixed my code and it should work now. Re-checkout the code and build.