Closed coder6423 closed 4 years ago
ESPHome just puts the libraries you specify directly into the platformio.ini
file and PIO takes care of installing them.
Indeed, platformio behaves this way when installing libraries (and we've had to deal with that too already).
But this is an issue with PIO, not esphome.
Thank you for your response, Otto!
PIOs solution to this is to install the libraries in --interactive mode. How do I achieve that with esphome, without getting an autoinstall run on top?
Now I understand what you mean.
Never heard of the interactive option before. I tried to go into the generated platformio project and manually run pio run --interactive
, but that returns that interactive is not a valid argument. Not sure how interactive is supposed to be used.
The --interactive option is on pip lib install, but you are right, pio run doesn't respect it. I'll keep looking into it and add something if I figure something out. Thanks a lot for your help!
Operating environment/Installation (Hass.io/Docker/pip/etc.):
pip
ESP (ESP32/ESP8266, Board/Sonoff):
ESP32
ESPHome version (latest production, beta, dev branch)
1.15.0-dev
Affected component:
https://esphome.io/components/esphome.html
Description of problem: When LibraryManager finds two libraries with the same name (eg: "SD"), it includes the first one, which in this case does not support ESP32. I use a library that uses that library, so I cannot edit the include in the source.
I tried to include the correct library into the YAML under esphome/libraries with its numerical value. I also tried to manually install with LibraryManager using --interactive and picking the correct one.
In both cases the correct library gets installed, however, when I run
esphome test.yaml run
, the wrong library gets installed anyways and used.Problem-relevant YAML-configuration entries:
Logs (if applicable):
Additional information and things you've tried: