[core] Drop Python 3.11 support (#17280)

This commit is contained in:
Jonathan Swoboda
2026-06-29 12:32:28 -04:00
committed by GitHub
parent 2778c62d07
commit b8690c8e31
16 changed files with 58 additions and 152 deletions
+2 -5
View File
@@ -24,7 +24,7 @@ import os
from pathlib import Path
import re
import tempfile
from typing import Any, TypeVar
from typing import Any
from urllib.parse import urlparse, urlsplit, urlunsplit
from esphome import git
@@ -195,10 +195,7 @@ class LibraryBackend:
emit: Callable[["ConvertedLibrary"], None]
T = TypeVar("T")
def ensure_list(obj: T | list[T]) -> list[T]:
def ensure_list[T](obj: T | list[T]) -> list[T]:
"""
Convert an object to a list if it isn't already a list.