1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 05: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,12 +1,11 @@
from dataclasses import dataclass
import json
from typing import Union
from pathlib import Path
import logging
import os
from pathlib import Path
import re
import subprocess
from typing import Union
from esphome.const import CONF_COMPILE_PROCESS_LIMIT, CONF_ESPHOME, KEY_CORE
from esphome.core import CORE, EsphomeError
@@ -20,9 +19,10 @@ def patch_structhash():
# removed/added. This might have unintended consequences, but this improves compile
# times greatly when adding/removing components and a simple clean build solves
# all issues
from platformio.run import helpers, cli
from os.path import join, isdir, getmtime
from os import makedirs
from os.path import getmtime, isdir, join
from platformio.run import cli, helpers
def patched_clean_build_dir(build_dir, *args):
from platformio import fs