Fix validation on priority import.

This commit is contained in:
Roy Walker
2026-02-24 11:16:21 -06:00
parent 4a1f9af319
commit 3a02c2f8af
+1 -2
View File
@@ -5,7 +5,7 @@ import esphome.codegen as cg
from esphome.components.esp32 import add_idf_sdkconfig_option
from esphome.components.psram import is_guaranteed as psram_is_guaranteed
import esphome.config_validation as cv
from esphome.const import CONF_ENABLE_IPV6, CONF_MIN_IPV6_ADDR_COUNT
from esphome.const import CONF_ENABLE_IPV6, CONF_MIN_IPV6_ADDR_COUNT, CONF_PRIORITY
from esphome.core import CORE, CoroPriority, coroutine_with_priority
import esphome.final_validate as fv
@@ -21,7 +21,6 @@ CONF_ENABLE_HIGH_PERFORMANCE = "enable_high_performance"
# Network priority tracking
KEY_NETWORK_PRIORITY = "network_priority"
CONF_PRIORITY = "priority"
VALID_NETWORK_TYPES = ["ethernet", "wifi"]
# Setup priority base values — first in list gets the highest priority
NETWORK_PRIORITY_BASE = 300.0