1
0
mirror of https://github.com/esphome/esphome.git synced 2026-02-08 00:31:58 +00:00

[esp32] Change imports to use esp32 only, not .const (#12243)

This commit is contained in:
Jesse Hills
2025-12-06 03:53:08 +13:00
committed by GitHub
parent 19fa768730
commit 7fd79fdded
32 changed files with 60 additions and 64 deletions

View File

@@ -17,8 +17,7 @@ def test_esp32_config(
) -> None:
set_core_config(PlatformFramework.ESP32_IDF)
from esphome.components.esp32 import CONFIG_SCHEMA
from esphome.components.esp32.const import VARIANT_ESP32, VARIANT_FRIENDLY
from esphome.components.esp32 import CONFIG_SCHEMA, VARIANT_ESP32, VARIANT_FRIENDLY
# Example ESP32 configuration
config = {

View File

@@ -4,7 +4,7 @@ from typing import Any
import pytest
from esphome.components.esp32.const import (
from esphome.components.esp32 import (
KEY_VARIANT,
VARIANT_ESP32,
VARIANT_ESP32C2,