mirror of
https://github.com/esphome/esphome.git
synced 2025-09-06 05:12:21 +01:00
preen
This commit is contained in:
@@ -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")
|
||||||
|
Reference in New Issue
Block a user