Looking into the source code the board type does not matter all that much, just defining a few special pins and mapping most boards to the VARIANT_ESP32. “esp32dev” should be sufficient for most cases.
github.comesphome/esphome/blob/28d2949ebef614240b0c400e15a3f710adbf799c/esphome/components/esp32/boards.pyfrom .const import VARIANT_ESP32, VARIANT_ESP32S2, VARIANT_ESP32C3ESP32_BASE_PINS = {"TX": 1,"RX": 3,"SDA": 21,"SCL": 22,"SS": 5,"MOSI": 23,"MISO": 19,"SCK": 18,"A0": 36,"A3": 39,"A4": 32,"A5": 33,"A6": 34,"A7": 35,"A10": 4,"A11": 0,"A12": 2, This file has been truncated. show originalesp32dev“esp32dev”: {},“esp32dev”: VARIANT_ESP32,
esp32doit-devkit-v1“esp32doit-devkit-v1”: {“LED”: 2},“esp32doit-devkit-v1”: VARIANT_ESP32,
nodemcu-32s“nodemcu-32s”: {“BUTTON”: 0, “LED”: 2},“nodemcu-32s”: VARIANT_ESP32,