mirror of
https://github.com/esphome/esphome.git
synced 2026-09-11 15:27:33 +00:00
Fix validation on priority import.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user