update minimal python version to 3.10 (#8850)

This commit is contained in:
Thomas Rupprecht
2025-05-22 13:21:43 +12:00
committed by GitHub
parent 026f47bfb3
commit aeb4e63950
36 changed files with 148 additions and 166 deletions
+1 -2
View File
@@ -6,7 +6,6 @@ from pathlib import Path
import re
import subprocess
import sys
from typing import Union
from esphome import const
@@ -162,7 +161,7 @@ class RedirectText:
def run_external_command(
func, *cmd, capture_stdout: bool = False, filter_lines: str = None
) -> Union[int, str]:
) -> int | str:
"""
Run a function from an external package that acts like a main method.