mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 00:18:11 +01:00
Switch IPv6 platform check to use require_framework_version() (#7410)
This commit is contained in:
parent
d10feafa9b
commit
b5e5741ffd
1 changed files with 7 additions and 8 deletions
|
@ -1,13 +1,7 @@
|
||||||
import esphome.codegen as cg
|
import esphome.codegen as cg
|
||||||
from esphome.components.esp32 import add_idf_sdkconfig_option
|
from esphome.components.esp32 import add_idf_sdkconfig_option
|
||||||
import esphome.config_validation as cv
|
import esphome.config_validation as cv
|
||||||
from esphome.const import (
|
from esphome.const import CONF_ENABLE_IPV6, CONF_MIN_IPV6_ADDR_COUNT
|
||||||
CONF_ENABLE_IPV6,
|
|
||||||
CONF_MIN_IPV6_ADDR_COUNT,
|
|
||||||
PLATFORM_ESP32,
|
|
||||||
PLATFORM_ESP8266,
|
|
||||||
PLATFORM_RP2040,
|
|
||||||
)
|
|
||||||
from esphome.core import CORE
|
from esphome.core import CORE
|
||||||
|
|
||||||
CODEOWNERS = ["@esphome/core"]
|
CODEOWNERS = ["@esphome/core"]
|
||||||
|
@ -26,7 +20,12 @@ CONFIG_SCHEMA = cv.Schema(
|
||||||
): cv.All(
|
): cv.All(
|
||||||
cv.boolean,
|
cv.boolean,
|
||||||
cv.Any(
|
cv.Any(
|
||||||
cv.only_on([PLATFORM_ESP32, PLATFORM_ESP8266, PLATFORM_RP2040]),
|
cv.require_framework_version(
|
||||||
|
esp_idf=cv.Version(0, 0, 0),
|
||||||
|
esp32_arduino=cv.Version(0, 0, 0),
|
||||||
|
esp8266_arduino=cv.Version(0, 0, 0),
|
||||||
|
rp2040_arduino=cv.Version(0, 0, 0),
|
||||||
|
),
|
||||||
cv.boolean_false,
|
cv.boolean_false,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue