Why is it failing (captive portal dependency when there's no captive_portal: in yaml)?

Hi. Im trying to compile this:

esphome:
  name: zwave-gateway
  friendly_name: zwave-gateway
  project: 
    name: tubezb.zw
    version: "3.0"

#wifi:
#  ssid: !secret wifi_ssid
#  password: !secret wifi_password
#
#  ## Enable fallback hotspot (captive portal) in case wifi connection fails
#  ap:
#    ssid: "Zwave-Gateway Fallback Hotspot"
#    password: "yCnsOoWJzqoP"

esp32:
  board: esp32-poe
  framework:
    type: esp-idf

external_components:
  - source: github://oxan/esphome-stream-server

dashboard_import:
  package_import_url: github://tube0013/tube_gateways/models/current/tubeszb-zw-kit/tubeszb-zw.yaml

#Olimex ESP32-PoE Ethernet
ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0
  power_pin: GPIO12
  
    # Optional manual IP
  #manual_ip:
    #static_ip: 
    #gateway: 
    #subnet: 255.255.255.0  

# Enable logging
logger:
  level: DEBUG
  
# Enable Home Assistant API
api:
  reboot_timeout: 0s
  encryption:
    key: "xxxxx"
ota:
  - platform: esphome
    password: "xxxxx"

web_server:
  port: 80

button:
  - platform: restart
    name: "Restart the ESP32 Device"

uart:
  id: uart_bus
  rx_pin: GPIO16
  tx_pin: GPIO5
  baud_rate: 115200

stream_server:
  buffer_size: 2048
  uart_id: uart_bus
#  id: ss
  port: 6638 # optional, default is 6638


binary_sensor:
  - platform: stream_server
    connected:
      name: "TubesZB ZW Serial Connected"

but its failing with the following error:

INFO ESPHome 2024.7.3
INFO Reading configuration /config/esphome/zwave-gateway.yaml...
WARNING GPIO12 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
WARNING GPIO5 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Generating C++ source...
INFO Compiling app...
Processing zwave-gateway (board: esp32-poe; framework: espidf; platform: platformio/[email protected])
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
 - framework-espidf @ 3.40407.240606 (4.4.7) 
 - tool-cmake @ 3.16.4 
 - tool-ninja @ 1.7.1 
 - toolchain-esp32ulp @ 2.35.0-20220830 
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Reading CMake configuration...
Dependency Graph
|-- noise-c @ 0.1.4
|-- ArduinoJson @ 6.18.5
*** [.pioenvs/zwave-gateway/src/esphome/components/captive_portal/captive_portal.o] Source `src/esphome/components/captive_portal/captive_portal.cpp' not found, needed by target `.pioenvs/zwave-gateway/src/esphome/components/captive_portal/captive_portal.o'.
========================== [FAILED] Took 2.71 seconds ==========================

Where the captive_portal dependency comes from?