SONOFF S26 boot loop with version 2021.8.2

I’ve just updated one of my SONOFF S26 switches to version ESPHome version 2021.8.2 and now the device is stuck in a boot loop. I can hear the relay clicking every 20 seconds and the device does not connect to my wifi and does not start the fallback ap.

Here is the configuration of my device:

esphome:
  name: sonoff01
  platform: ESP8266
  board: esp8285
  arduino_version: 2.4.2

wifi:
  use_address: 172.17.7.10
  networks:
    - ssid: "MYSSID"
      bssid: "MYBSSID"
      password: !secret MYPASSWORD

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Sonoff01 Fallback Hotspot"
    password: !secret CAPTIVE_PORTAL_PASSWORD

mqtt:
  broker: 172.17.2.21
  client_id: sonoff01
  discovery: True
  birth_message:
    topic: sonoff01/availability
    payload: online
  will_message:
    topic: sonoff01/availability
    payload: offline

api:
  password: !secret API_PASSWORD
  reboot_timeout: 0s
  
logger:

ota:
  password: !secret OTA_PASSWORD

binary_sensor:
  - platform: gpio
    name: "Button"
    id: button
    pin:
      number: GPIO0
      mode: INPUT_PULLUP
      inverted: True
    on_press:
      - switch.toggle: relay

switch:
  - platform: gpio
    name: "Relay"
    pin: GPIO12
    id: relay
  - platform: restart
    name: "Restart"
    id: reboot

sensor:
  - platform: wifi_signal
    name: "WiFi Signal"
    id: rssi
    update_interval: 60s

Is there something wrong with my config on the new version or is this a problem of the new version itself?

I just found out what was causing the problem. I removed the line arduino_version: 2.4.2 and flashed the Sonoff again. Without this setting the device works again.