1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-21 20:52:20 +01:00
This commit is contained in:
J. Nick Koston
2025-09-11 19:28:54 -05:00
parent 8925966119
commit 46c83c8824

View File

@@ -9,10 +9,14 @@ from pathlib import Path
import platform
import re
import tempfile
from typing import TYPE_CHECKING
from urllib.parse import urlparse
from esphome.const import __version__ as ESPHOME_VERSION
if TYPE_CHECKING:
from esphome.address_cache import AddressCache
# Type aliases for socket address information
AddrInfo = tuple[
int, # family (AF_INET, AF_INET6, etc.)
@@ -174,7 +178,7 @@ def addr_preference_(res: AddrInfo) -> int:
def resolve_ip_address(
host: str | list[str], port: int, address_cache: object | None = None
host: str | list[str], port: int, address_cache: AddressCache | None = None
) -> list[AddrInfo]:
import socket