1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-10 07:12:21 +01:00

[code-quality] Organise core imports (#7149)

This commit is contained in:
Jesse Hills
2024-07-29 14:07:44 +12:00
committed by GitHub
parent 20c2246533
commit e64709c37e
32 changed files with 190 additions and 186 deletions

View File

@@ -1,14 +1,13 @@
import codecs
from contextlib import suppress
import logging
import os
import platform
from pathlib import Path
from typing import Union
import tempfile
from urllib.parse import urlparse
import platform
import re
import tempfile
from typing import Union
from urllib.parse import urlparse
_LOGGER = logging.getLogger(__name__)
@@ -129,9 +128,10 @@ def _resolve_with_zeroconf(host):
def resolve_ip_address(host):
from esphome.core import EsphomeError
import socket
from esphome.core import EsphomeError
errs = []
if host.endswith(".local"):