pokus.yaml

esphome:
  name: pokus
  platform: ESP8266
  board: d1_mini

  on_boot:
    - lambda: |-
        id(otaa).set_auth_password("new_password");  

ota:
  password: "old_password"
  id: otaa