ESPHome fully supports the later ESP32-C5, which is great as it gives you both 2.4GHz and 5GHz Wi-Fi.
ESP-IDF framework
As the ESP32-C5 relies on the ESP-IDF framework, you need to configure the device within the YAML file.
An example is shown below.
Creating a new ESP32-C5 Device
As ESPHome does not currently list the ESP32-C5 within its supported MCUs, you can simply select another and then once the YAML basic file is created, you can update as shown above.

For example, selecting ESP32-C6 will create with the YAML file:
So you can then simply edit this to: