Error esphome compile

Hi,

This is what I did:

esphome:
  name: level
  platform: ESP8266
  board: nodemcuv2

wifi:
  ssid: "MiFibra-0B4A"
  password: "xxxxxx"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Level Fallback Hotspot"
    password: "aPm9IaOFCFXM"

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:

ota: