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:
@@ -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"):
|
||||
|
Reference in New Issue
Block a user