mirror of
https://github.com/esphome/esphome.git
synced 2025-10-22 19:53:46 +01:00
preen
This commit is contained in:
@@ -70,7 +70,7 @@ def extract_from_compile_output(
|
|||||||
# Look for: INFO Compiling app... Build path: /path/to/build
|
# Look for: INFO Compiling app... Build path: /path/to/build
|
||||||
# Note: Multiple builds reuse the same build path (each overwrites the previous)
|
# Note: Multiple builds reuse the same build path (each overwrites the previous)
|
||||||
build_dir = None
|
build_dir = None
|
||||||
if match := re.search(r"Build path: (.+)", output_text):
|
if match := _BUILD_PATH_PATTERN.search(output_text):
|
||||||
build_dir = match.group(1).strip()
|
build_dir = match.group(1).strip()
|
||||||
|
|
||||||
return total_ram, total_flash, build_dir
|
return total_ram, total_flash, build_dir
|
||||||
@@ -210,11 +210,7 @@ def main() -> int:
|
|||||||
return 1
|
return 1
|
||||||
|
|
||||||
# Count how many builds were found
|
# Count how many builds were found
|
||||||
num_builds = len(
|
num_builds = len(_RAM_PATTERN.findall(compile_output))
|
||||||
re.findall(
|
|
||||||
r"RAM:\s+\[.*?\]\s+\d+\.\d+%\s+\(used\s+(\d+)\s+bytes", compile_output
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
if num_builds > 1:
|
if num_builds > 1:
|
||||||
print(
|
print(
|
||||||
|
Reference in New Issue
Block a user