mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 07:58:09 +01:00
make import alphabetical order
This commit is contained in:
parent
e44c02523a
commit
e86b546ec1
8 changed files with 32 additions and 34 deletions
|
@ -18,11 +18,11 @@ 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_NRF52,
|
PLATFORM_NRF52,
|
||||||
|
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 import add_idf_sdkconfig_option, get_esp32_variant
|
||||||
|
|
|
@ -2,13 +2,13 @@ import esphome.codegen as cg
|
||||||
import esphome.config_validation as cv
|
import esphome.config_validation as cv
|
||||||
from esphome.const import (
|
from esphome.const import (
|
||||||
CONF_BOARD,
|
CONF_BOARD,
|
||||||
|
CONF_FRAMEWORK,
|
||||||
|
CONF_PLATFORM_VERSION,
|
||||||
|
CONF_TYPE,
|
||||||
KEY_CORE,
|
KEY_CORE,
|
||||||
KEY_TARGET_FRAMEWORK,
|
KEY_TARGET_FRAMEWORK,
|
||||||
KEY_TARGET_PLATFORM,
|
KEY_TARGET_PLATFORM,
|
||||||
PLATFORM_NRF52,
|
PLATFORM_NRF52,
|
||||||
CONF_TYPE,
|
|
||||||
CONF_FRAMEWORK,
|
|
||||||
CONF_PLATFORM_VERSION,
|
|
||||||
)
|
)
|
||||||
from esphome.core import CORE, coroutine_with_priority
|
from esphome.core import CORE, coroutine_with_priority
|
||||||
|
|
||||||
|
@ -17,14 +17,12 @@ from esphome.components.zephyr import (
|
||||||
zephyr_to_code,
|
zephyr_to_code,
|
||||||
)
|
)
|
||||||
from esphome.components.zephyr.const import (
|
from esphome.components.zephyr.const import (
|
||||||
KEY_ZEPHYR,
|
|
||||||
KEY_BOOTLOADER,
|
|
||||||
BOOTLOADER_MCUBOOT,
|
BOOTLOADER_MCUBOOT,
|
||||||
|
KEY_BOOTLOADER,
|
||||||
|
KEY_ZEPHYR,
|
||||||
)
|
)
|
||||||
from .boards_zephyr import BOARDS_ZEPHYR
|
from .boards_zephyr import BOARDS_ZEPHYR
|
||||||
from .const import (
|
from .const import BOOTLOADER_ADAFRUIT
|
||||||
BOOTLOADER_ADAFRUIT,
|
|
||||||
)
|
|
||||||
|
|
||||||
# force import gpio to register pin schema
|
# force import gpio to register pin schema
|
||||||
from .gpio import nrf52_pin_to_code # noqa
|
from .gpio import nrf52_pin_to_code # noqa
|
||||||
|
|
|
@ -4,8 +4,8 @@ import esphome.codegen as cg
|
||||||
import esphome.config_validation as cv
|
import esphome.config_validation as cv
|
||||||
from esphome.const import (
|
from esphome.const import (
|
||||||
CONF_ID,
|
CONF_ID,
|
||||||
CONF_MODE,
|
|
||||||
CONF_INVERTED,
|
CONF_INVERTED,
|
||||||
|
CONF_MODE,
|
||||||
CONF_NUMBER,
|
CONF_NUMBER,
|
||||||
)
|
)
|
||||||
from esphome.components.zephyr.const import (
|
from esphome.components.zephyr.const import (
|
||||||
|
|
|
@ -11,14 +11,14 @@ from esphome.const import (
|
||||||
KEY_NAME,
|
KEY_NAME,
|
||||||
)
|
)
|
||||||
from .const import (
|
from .const import (
|
||||||
KEY_ZEPHYR,
|
|
||||||
KEY_PRJ_CONF,
|
|
||||||
KEY_OVERLAY,
|
|
||||||
zephyr_ns,
|
|
||||||
BOOTLOADER_MCUBOOT,
|
BOOTLOADER_MCUBOOT,
|
||||||
KEY_EXTRA_BUILD_FILES,
|
|
||||||
KEY_PATH,
|
|
||||||
KEY_BOOTLOADER,
|
KEY_BOOTLOADER,
|
||||||
|
KEY_EXTRA_BUILD_FILES,
|
||||||
|
KEY_OVERLAY,
|
||||||
|
KEY_PATH,
|
||||||
|
KEY_PRJ_CONF,
|
||||||
|
KEY_ZEPHYR,
|
||||||
|
zephyr_ns,
|
||||||
)
|
)
|
||||||
|
|
||||||
CODEOWNERS = ["@tomaszduda23"]
|
CODEOWNERS = ["@tomaszduda23"]
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
import esphome.codegen as cg
|
import esphome.codegen as cg
|
||||||
|
|
||||||
KEY_ZEPHYR = "zephyr"
|
|
||||||
KEY_PRJ_CONF = "prj_conf"
|
|
||||||
KEY_OVERLAY = "overlay"
|
|
||||||
KEY_BOOTLOADER = "bootloader"
|
|
||||||
KEY_EXTRA_BUILD_FILES = "extra_build_files"
|
|
||||||
KEY_PATH = "path"
|
|
||||||
|
|
||||||
BOOTLOADER_MCUBOOT = "mcuboot"
|
BOOTLOADER_MCUBOOT = "mcuboot"
|
||||||
|
|
||||||
|
KEY_BOOTLOADER = "bootloader"
|
||||||
|
KEY_EXTRA_BUILD_FILES = "extra_build_files"
|
||||||
|
KEY_OVERLAY = "overlay"
|
||||||
|
KEY_PATH = "path"
|
||||||
|
KEY_PRJ_CONF = "prj_conf"
|
||||||
|
KEY_ZEPHYR = "zephyr"
|
||||||
|
|
||||||
zephyr_ns = cg.esphome_ns.namespace("zephyr")
|
zephyr_ns = cg.esphome_ns.namespace("zephyr")
|
||||||
|
|
|
@ -57,12 +57,12 @@ from esphome.const import (
|
||||||
KEY_TARGET_PLATFORM,
|
KEY_TARGET_PLATFORM,
|
||||||
PLATFORM_ESP32,
|
PLATFORM_ESP32,
|
||||||
PLATFORM_ESP8266,
|
PLATFORM_ESP8266,
|
||||||
|
PLATFORM_NRF52,
|
||||||
PLATFORM_RP2040,
|
PLATFORM_RP2040,
|
||||||
TYPE_GIT,
|
TYPE_GIT,
|
||||||
TYPE_LOCAL,
|
TYPE_LOCAL,
|
||||||
VALID_SUBSTITUTIONS_CHARACTERS,
|
VALID_SUBSTITUTIONS_CHARACTERS,
|
||||||
__version__ as ESPHOME_VERSION,
|
__version__ as ESPHOME_VERSION,
|
||||||
PLATFORM_NRF52,
|
|
||||||
)
|
)
|
||||||
from esphome.core import (
|
from esphome.core import (
|
||||||
CORE,
|
CORE,
|
||||||
|
|
|
@ -7,24 +7,24 @@ VALID_SUBSTITUTIONS_CHARACTERS = (
|
||||||
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_"
|
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
PLATFORM_BK72XX = "bk72xx"
|
||||||
PLATFORM_ESP32 = "esp32"
|
PLATFORM_ESP32 = "esp32"
|
||||||
PLATFORM_ESP8266 = "esp8266"
|
PLATFORM_ESP8266 = "esp8266"
|
||||||
PLATFORM_RP2040 = "rp2040"
|
|
||||||
PLATFORM_HOST = "host"
|
PLATFORM_HOST = "host"
|
||||||
PLATFORM_BK72XX = "bk72xx"
|
|
||||||
PLATFORM_RTL87XX = "rtl87xx"
|
|
||||||
PLATFORM_LIBRETINY_OLDSTYLE = "libretiny"
|
PLATFORM_LIBRETINY_OLDSTYLE = "libretiny"
|
||||||
PLATFORM_NRF52 = "nrf52"
|
PLATFORM_NRF52 = "nrf52"
|
||||||
|
PLATFORM_RP2040 = "rp2040"
|
||||||
|
PLATFORM_RTL87XX = "rtl87xx"
|
||||||
|
|
||||||
TARGET_PLATFORMS = [
|
TARGET_PLATFORMS = [
|
||||||
|
PLATFORM_BK72XX,
|
||||||
PLATFORM_ESP32,
|
PLATFORM_ESP32,
|
||||||
PLATFORM_ESP8266,
|
PLATFORM_ESP8266,
|
||||||
PLATFORM_RP2040,
|
|
||||||
PLATFORM_HOST,
|
PLATFORM_HOST,
|
||||||
PLATFORM_BK72XX,
|
|
||||||
PLATFORM_RTL87XX,
|
|
||||||
PLATFORM_LIBRETINY_OLDSTYLE,
|
PLATFORM_LIBRETINY_OLDSTYLE,
|
||||||
PLATFORM_NRF52,
|
PLATFORM_NRF52,
|
||||||
|
PLATFORM_RP2040,
|
||||||
|
PLATFORM_RTL87XX,
|
||||||
]
|
]
|
||||||
|
|
||||||
SOURCE_FILE_EXTENSIONS = {".cpp", ".hpp", ".h", ".c", ".tcc", ".ino"}
|
SOURCE_FILE_EXTENSIONS = {".cpp", ".hpp", ".h", ".c", ".tcc", ".ino"}
|
||||||
|
|
|
@ -15,13 +15,13 @@ from esphome.const import (
|
||||||
KEY_CORE,
|
KEY_CORE,
|
||||||
KEY_TARGET_FRAMEWORK,
|
KEY_TARGET_FRAMEWORK,
|
||||||
KEY_TARGET_PLATFORM,
|
KEY_TARGET_PLATFORM,
|
||||||
|
PLATFORM_BK72XX,
|
||||||
PLATFORM_ESP32,
|
PLATFORM_ESP32,
|
||||||
PLATFORM_ESP8266,
|
PLATFORM_ESP8266,
|
||||||
PLATFORM_BK72XX,
|
|
||||||
PLATFORM_RTL87XX,
|
|
||||||
PLATFORM_RP2040,
|
|
||||||
PLATFORM_HOST,
|
PLATFORM_HOST,
|
||||||
PLATFORM_NRF52,
|
PLATFORM_NRF52,
|
||||||
|
PLATFORM_RP2040,
|
||||||
|
PLATFORM_RTL87XX,
|
||||||
)
|
)
|
||||||
from esphome.coroutine import FakeAwaitable as _FakeAwaitable
|
from esphome.coroutine import FakeAwaitable as _FakeAwaitable
|
||||||
from esphome.coroutine import FakeEventLoop as _FakeEventLoop
|
from esphome.coroutine import FakeEventLoop as _FakeEventLoop
|
||||||
|
|
Loading…
Reference in a new issue