mirror of
https://github.com/esphome/esphome.git
synced 2024-11-12 18:27:46 +01:00
Add ESPHome version to generated platformio.ini (#4443)
* Add ESPHome version to generated platformio.ini * Move description to platformio section
This commit is contained in:
parent
30eec5adee
commit
dbe5587806
1 changed files with 4 additions and 1 deletions
|
@ -142,7 +142,10 @@ def get_ini_content():
|
||||||
# Sort to avoid changing build flags order
|
# Sort to avoid changing build flags order
|
||||||
CORE.add_platformio_option("build_flags", sorted(CORE.build_flags))
|
CORE.add_platformio_option("build_flags", sorted(CORE.build_flags))
|
||||||
|
|
||||||
content = f"[env:{CORE.name}]\n"
|
content = "[platformio]\n"
|
||||||
|
content += f"description = ESPHome {__version__}\n"
|
||||||
|
|
||||||
|
content += f"[env:{CORE.name}]\n"
|
||||||
content += format_ini(CORE.platformio_options)
|
content += format_ini(CORE.platformio_options)
|
||||||
|
|
||||||
return content
|
return content
|
||||||
|
|
Loading…
Reference in a new issue