When I compile firmware with ESPHome I see this message at the end
========================= [SUCCESS] Took 32.51 seconds =========================
********************************************************************************
There is a new version 4.1.0 of PlatformIO available.
Please upgrade it via `platformio upgrade` or `pip install -U platformio` command.
Changes: https://docs.platformio.org/en/latest/history.html
********************************************************************************
********************************************************************************
There are the new updates for platforms (espressif8266)
Please update them via `platformio platform update` command.
If you want to manually check for the new versions without updating, please use `platformio platform update --dry-run` command.
********************************************************************************
Unless you had a reason to do it I wouldn’t worry. Esphome ships with specific version of many libraries and sometimes stuff gets incompatible if you try to use latest versions of tools
Those commands have to be entered in the esphome container/add-on, not Home Assistant.
I use Portainer to show all containers (HA add-ons) and from there I can console into a container and issue commands.