Do I need to upgrade platformio separately

Hello,

I have just installed ESPHome using a virtualenv.

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.
********************************************************************************

I use the following to upgrade ESPHome

pip3 install --upgrade esphome

Should I ever use one of these commands as well?

platformio upgrade
platformio update

Thanks

If it was me, I’d use the commands from the prompt:

platformio upgrade
platformio platform update

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

1 Like

:thinking:

I tried those commands and they seem to work as far as upgrading platformio. ESPHome seems to be working as well.


But I also tried this command as well

pip3 install -U platformio

And I see this error message

ERROR: esphome 1.14.3 has requirement platformio==4.0.3, but you'll have platformio 4.1.0 which is incompatible.

So maybe I should only use

platformio platform update

and wait to have platformio upgrade only when esphome requires it?

Thanks

:+1:

We replied at almost the same time. I must have been channeling your thoughts as you were tying :rofl:

1 Like

Hey, where have i put this command?
Just in terminal?

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.

Time flys…
platformio platform update

WARNING: This command is deprecated and will be removed in the next releases.
Please use pio pkg update instead.