1
0
mirror of https://github.com/esphome/esphome.git synced 2025-07-08 16:13:08 +01:00

Merge remote-tracking branch 'origin/dev' into nrf52_core

This commit is contained in:
Tomasz Duda
2024-08-12 16:05:37 +02:00
28 changed files with 1325 additions and 47 deletions

@ -292,10 +292,7 @@ CONFIG_NEWLIB_LIBC=y
def get_binary(name: str, version: str) -> str:
binary_file = f"{name}-{version}"
try:
# If no exception was raised, the command was successful
result = subprocess.check_output(
[binary_file, "-version"], stderr=subprocess.STDOUT
)
result = subprocess.check_output([binary_file, "-version"])
return binary_file
except FileNotFoundError:
pass