From 85e0a4fbf9e966a096d61cfcf086640ee88c6be3 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 17 Oct 2025 18:29:36 -1000 Subject: [PATCH] update test --- esphome/platformio_api.py | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/esphome/platformio_api.py b/esphome/platformio_api.py index cc48562b4c..c50bb2acff 100644 --- a/esphome/platformio_api.py +++ b/esphome/platformio_api.py @@ -378,19 +378,17 @@ class IDEData: @property def objdump_path(self) -> str: # replace gcc at end with objdump - - # Windows - if self.cc_path.endswith(".exe"): - return f"{self.cc_path[:-7]}objdump.exe" - - return f"{self.cc_path[:-3]}objdump" + return ( + f"{self.cc_path[:-7]}objdump.exe" + if self.cc_path.endswith(".exe") + else f"{self.cc_path[:-3]}objdump" + ) @property def readelf_path(self) -> str: # replace gcc at end with readelf - - # Windows - if self.cc_path.endswith(".exe"): - return f"{self.cc_path[:-7]}readelf.exe" - - return f"{self.cc_path[:-3]}readelf" + return ( + f"{self.cc_path[:-7]}readelf.exe" + if self.cc_path.endswith(".exe") + else f"{self.cc_path[:-3]}readelf" + )