mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 16:38:16 +01:00
Move CONF_PLATFORM_VERSION to global const.py (#6629)
* remove duplicated definition * format
This commit is contained in:
parent
41b19504bc
commit
bdc9c66f7e
4 changed files with 4 additions and 5 deletions
|
@ -32,6 +32,7 @@ from esphome.const import (
|
|||
TYPE_GIT,
|
||||
TYPE_LOCAL,
|
||||
__version__,
|
||||
CONF_PLATFORM_VERSION,
|
||||
)
|
||||
from esphome.core import CORE, HexInt, TimePeriod
|
||||
import esphome.config_validation as cv
|
||||
|
@ -365,8 +366,6 @@ def final_validate(config):
|
|||
return config
|
||||
|
||||
|
||||
CONF_PLATFORM_VERSION = "platform_version"
|
||||
|
||||
ARDUINO_FRAMEWORK_SCHEMA = cv.All(
|
||||
cv.Schema(
|
||||
{
|
||||
|
|
|
@ -12,6 +12,7 @@ from esphome.const import (
|
|||
KEY_TARGET_FRAMEWORK,
|
||||
KEY_TARGET_PLATFORM,
|
||||
PLATFORM_ESP8266,
|
||||
CONF_PLATFORM_VERSION,
|
||||
)
|
||||
from esphome.core import CORE, coroutine_with_priority
|
||||
import esphome.config_validation as cv
|
||||
|
@ -146,7 +147,6 @@ def _parse_platform_version(value):
|
|||
return value
|
||||
|
||||
|
||||
CONF_PLATFORM_VERSION = "platform_version"
|
||||
ARDUINO_FRAMEWORK_SCHEMA = cv.All(
|
||||
cv.Schema(
|
||||
{
|
||||
|
|
|
@ -15,6 +15,7 @@ from esphome.const import (
|
|||
KEY_TARGET_FRAMEWORK,
|
||||
KEY_TARGET_PLATFORM,
|
||||
PLATFORM_RP2040,
|
||||
CONF_PLATFORM_VERSION,
|
||||
)
|
||||
from esphome.core import CORE, coroutine_with_priority, EsphomeError
|
||||
from esphome.helpers import mkdir_p, write_file, copy_file_if_changed
|
||||
|
@ -125,8 +126,6 @@ def _parse_platform_version(value):
|
|||
return value
|
||||
|
||||
|
||||
CONF_PLATFORM_VERSION = "platform_version"
|
||||
|
||||
ARDUINO_FRAMEWORK_SCHEMA = cv.All(
|
||||
cv.Schema(
|
||||
{
|
||||
|
|
|
@ -597,6 +597,7 @@ CONF_PIN_D = "pin_d"
|
|||
CONF_PINS = "pins"
|
||||
CONF_PIXEL_MAPPER = "pixel_mapper"
|
||||
CONF_PLATFORM = "platform"
|
||||
CONF_PLATFORM_VERSION = "platform_version"
|
||||
CONF_PLATFORMIO_OPTIONS = "platformio_options"
|
||||
CONF_PM_0_3UM = "pm_0_3um"
|
||||
CONF_PM_0_5UM = "pm_0_5um"
|
||||
|
|
Loading…
Reference in a new issue