When I came to add my discovered node (in Home Assistant - Integrations - ESPHome sonoff_box) a message in red was
Can’t connect to ESP. add api: line to your configuration
Happily this message has gone away - everything works well (thanks to everyone)
HOWEVER in the documentation for the Native API I read the line below. So I got wondering which file actually needed the api: line - I think you mean the node configuration. I don’t think you mean configuration.yaml.
After adding an api:
line to your esphome configuration you can go to the Home Assistant web interface and navigate to the “Integrations” screen in the “Configuration” panel.