From 44494ad18e98910836c549b3701b467af45ed5ff Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Thu, 16 Feb 2023 13:27:32 +1300 Subject: [PATCH 1/2] Add ESPHome version to generated platformio.ini (#4443) * Add ESPHome version to generated platformio.ini * Move description to platformio section --- esphome/writer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/esphome/writer.py b/esphome/writer.py index 7a3c13e80b..2bf665c2b2 100644 --- a/esphome/writer.py +++ b/esphome/writer.py @@ -142,7 +142,10 @@ def get_ini_content(): # Sort to avoid changing build flags order 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) return content From 45180d98f6d6e79f44e28830dc46203d7f7f9082 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Thu, 16 Feb 2023 14:06:42 +1300 Subject: [PATCH 2/2] Bump version to 2023.2.1 --- esphome/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/const.py b/esphome/const.py index 01135d5e6f..8535e92370 100644 --- a/esphome/const.py +++ b/esphome/const.py @@ -1,6 +1,6 @@ """Constants used by esphome.""" -__version__ = "2023.2.0" +__version__ = "2023.2.1" ALLOWED_NAME_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789-_"