1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 13:22:19 +01:00
This commit is contained in:
J. Nick Koston
2025-07-31 22:25:44 -10:00
parent bea2f4971e
commit e17af87f6e

View File

@@ -6,6 +6,7 @@ from pathlib import Path
import re import re
import subprocess import subprocess
import sys import sys
from typing import Any
from esphome import const from esphome import const
@@ -223,7 +224,7 @@ def run_external_command(
return retval return retval
def run_external_process(*cmd: str, **kwargs: str) -> int | str: def run_external_process(*cmd: str, **kwargs: Any) -> int | str:
full_cmd = " ".join(shlex_quote(x) for x in cmd) full_cmd = " ".join(shlex_quote(x) for x in cmd)
_LOGGER.debug("Running: %s", full_cmd) _LOGGER.debug("Running: %s", full_cmd)
filter_lines = kwargs.get("filter_lines") filter_lines = kwargs.get("filter_lines")