I think this must be a regression in a recent release for esp32dev devices. Even recreating the device didn’t help me. What did help for me was changing the framework from arduino
to esp-idf
:
More details in the docs here: ESP32 Platform — ESPHome
Hope this helps someone else.