Esp32-s2 / esp-idf / lolin-s2-pico 4.4.3/5.3.0 linking problems

How come

esphome:
  name: co2-new
  
esp32:
  board: lolin_s2_pico
  variant: esp32s2
  framework:
    type: esp-idf
    version: 4.4.3
    platform_version: 5.3.0

compiles, but if I add an

ota:

it fails when linking with:

/data/cache/platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s2-elf/8.4.0/../../../../xtensa-esp32s2-elf/bin/ld: /data/co2-new/.pioenvs/co2-new/src/main.o:(.literal._Z5setupv+0x148): undefined reference to `esphome::ota::OTAComponent::OTAComponent()'
/data/cache/platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s2-elf/8.4.0/../../../../xtensa-esp32s2-elf/bin/ld: /data/co2-new/.pioenvs/co2-new/src/main.o:(.literal._Z5setupv+0x14c): undefined reference to `esphome::ota::OTAComponent::set_port(unsigned short)'
/data/cache/platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s2-elf/8.4.0/../../../../xtensa-esp32s2-elf/bin/ld: /data/co2-new/.pioenvs/co2-new/src/main.o:(.literal._Z5setupv+0x150): undefined reference to `esphome::ota::OTAComponent::should_enter_safe_mode(unsigned char, unsigned int)'
/data/cache/platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s2-elf/8.4.0/../../../../xtensa-esp32s2-elf/bin/ld: /data/co2-new/.pioenvs/co2-new/src/main.o: in function `setup()':
/config/esphome/.esphome/build/co2-new/src/main.cpp:123: undefined reference to `esphome::ota::OTAComponent::OTAComponent()'
/data/cache/platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s2-elf/8.4.0/../../../../xtensa-esp32s2-elf/bin/ld: /data/co2-new/.pioenvs/co2-new/src/main.o: in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()':
/data/cache/platformio/packages/[email protected]+2021r2-patch5/xtensa-esp32s2-elf/include/c++/8.4.0/bits/basic_string.h:657: undefined reference to `esphome::ota::OTAComponent::set_port(unsigned short)'
/data/cache/platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s2-elf/8.4.0/../../../../xtensa-esp32s2-elf/bin/ld: /data/co2-new/.pioenvs/co2-new/src/main.o: in function `setup()':
/config/esphome/.esphome/build/co2-new/src/main.cpp:126: undefined reference to `esphome::ota::OTAComponent::should_enter_safe_mode(unsigned char, unsigned int)'

?