mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 23:48:11 +01:00
[config] Ensure user-supplied build flags don't get silently overwritten (#7622)
This commit is contained in:
parent
5e8794175d
commit
c8d0cde329
1 changed files with 2 additions and 0 deletions
|
@ -318,6 +318,8 @@ async def add_includes(includes):
|
|||
async def _add_platformio_options(pio_options):
|
||||
# Add includes at the very end, so that they override everything
|
||||
for key, val in pio_options.items():
|
||||
if key == "build_flags" and not isinstance(val, list):
|
||||
val = [val]
|
||||
cg.add_platformio_option(key, val)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue