ESP8266 wont connect to wifi

I have the smaller ESP8266 ESP01 board and have freshly flashed it out of the box, via ESP Web Tools and it just does not connect to wifi.

I’ve done the obvious like check if there is enough available leases on the network, DHCP is working fine. But still it does not connect.

Any ideas? The flashing process completes successfully.

Thanks

esphome:
  name: small-pir-1
  friendly_name: small-pir-1

esp8266:
  board: esp01_1m

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "j0CSbs/MTPpXndmDH3ATzZ4p5EaIJv2QlEQItz7aHgg="

ota:
  password: "e85e0378a2fbd3d593bb9472891596fa"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Small-Pir-1 Fallback Hotspot"
    password: "K7clqI03XPzf"

captive_portal:
    

Logs please.

I cannot open logs.

Im getting the following error

An error occurred. Improv Wi-Fi Serial not detected

Plug in with usb to get the logs.

Yes, im plugging in with USB to Serial and attempting to get logs from ESP web.

However, the log is just blank, black screen.
If i got to the 3 dots menu, and select configure WiFi, that when I get that error.

Get the logs from esphome.

But it’s not connected to esphome?