mirror of
https://github.com/esphome/esphome.git
synced 2024-11-26 12:27:13 +01:00
[code-quality] Organise logger imports (#7205)
This commit is contained in:
parent
132269c5b8
commit
2a8424a7f2
@ -1,9 +1,21 @@
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
import esphome.codegen as cg
|
|
||||||
import esphome.config_validation as cv
|
|
||||||
from esphome import automation
|
from esphome import automation
|
||||||
from esphome.automation import LambdaAction
|
from esphome.automation import LambdaAction
|
||||||
|
import esphome.codegen as cg
|
||||||
|
from esphome.components.esp32 import add_idf_sdkconfig_option, get_esp32_variant
|
||||||
|
from esphome.components.esp32.const import (
|
||||||
|
VARIANT_ESP32,
|
||||||
|
VARIANT_ESP32C2,
|
||||||
|
VARIANT_ESP32C3,
|
||||||
|
VARIANT_ESP32C6,
|
||||||
|
VARIANT_ESP32H2,
|
||||||
|
VARIANT_ESP32S2,
|
||||||
|
VARIANT_ESP32S3,
|
||||||
|
)
|
||||||
|
from esphome.components.libretiny import get_libretiny_component, get_libretiny_family
|
||||||
|
from esphome.components.libretiny.const import COMPONENT_BK72XX, COMPONENT_RTL87XX
|
||||||
|
import esphome.config_validation as cv
|
||||||
from esphome.const import (
|
from esphome.const import (
|
||||||
CONF_ARGS,
|
CONF_ARGS,
|
||||||
CONF_BAUD_RATE,
|
CONF_BAUD_RATE,
|
||||||
@ -18,27 +30,12 @@ from esphome.const import (
|
|||||||
CONF_TRIGGER_ID,
|
CONF_TRIGGER_ID,
|
||||||
CONF_TX_BUFFER_SIZE,
|
CONF_TX_BUFFER_SIZE,
|
||||||
PLATFORM_BK72XX,
|
PLATFORM_BK72XX,
|
||||||
PLATFORM_RTL87XX,
|
|
||||||
PLATFORM_ESP32,
|
PLATFORM_ESP32,
|
||||||
PLATFORM_ESP8266,
|
PLATFORM_ESP8266,
|
||||||
PLATFORM_RP2040,
|
PLATFORM_RP2040,
|
||||||
|
PLATFORM_RTL87XX,
|
||||||
)
|
)
|
||||||
from esphome.core import CORE, EsphomeError, Lambda, coroutine_with_priority
|
from esphome.core import CORE, EsphomeError, Lambda, coroutine_with_priority
|
||||||
from esphome.components.esp32 import add_idf_sdkconfig_option, get_esp32_variant
|
|
||||||
from esphome.components.esp32.const import (
|
|
||||||
VARIANT_ESP32,
|
|
||||||
VARIANT_ESP32S2,
|
|
||||||
VARIANT_ESP32C3,
|
|
||||||
VARIANT_ESP32S3,
|
|
||||||
VARIANT_ESP32C2,
|
|
||||||
VARIANT_ESP32C6,
|
|
||||||
VARIANT_ESP32H2,
|
|
||||||
)
|
|
||||||
from esphome.components.libretiny import get_libretiny_component, get_libretiny_family
|
|
||||||
from esphome.components.libretiny.const import (
|
|
||||||
COMPONENT_BK72XX,
|
|
||||||
COMPONENT_RTL87XX,
|
|
||||||
)
|
|
||||||
|
|
||||||
CODEOWNERS = ["@esphome/core"]
|
CODEOWNERS = ["@esphome/core"]
|
||||||
logger_ns = cg.esphome_ns.namespace("logger")
|
logger_ns = cg.esphome_ns.namespace("logger")
|
||||||
|
Loading…
Reference in New Issue
Block a user