mirror of
https://github.com/esphome/esphome.git
synced 2025-04-07 03:10:27 +01:00
remove duplicated definition
This commit is contained in:
parent
264720b90c
commit
289f778fcd
@ -32,6 +32,7 @@ from esphome.const import (
|
|||||||
TYPE_GIT,
|
TYPE_GIT,
|
||||||
TYPE_LOCAL,
|
TYPE_LOCAL,
|
||||||
__version__,
|
__version__,
|
||||||
|
CONF_PLATFORM_VERSION,
|
||||||
)
|
)
|
||||||
from esphome.core import CORE, HexInt, TimePeriod
|
from esphome.core import CORE, HexInt, TimePeriod
|
||||||
import esphome.config_validation as cv
|
import esphome.config_validation as cv
|
||||||
@ -356,8 +357,6 @@ def final_validate(config):
|
|||||||
return config
|
return config
|
||||||
|
|
||||||
|
|
||||||
CONF_PLATFORM_VERSION = "platform_version"
|
|
||||||
|
|
||||||
ARDUINO_FRAMEWORK_SCHEMA = cv.All(
|
ARDUINO_FRAMEWORK_SCHEMA = cv.All(
|
||||||
cv.Schema(
|
cv.Schema(
|
||||||
{
|
{
|
||||||
|
@ -12,6 +12,7 @@ from esphome.const import (
|
|||||||
KEY_TARGET_FRAMEWORK,
|
KEY_TARGET_FRAMEWORK,
|
||||||
KEY_TARGET_PLATFORM,
|
KEY_TARGET_PLATFORM,
|
||||||
PLATFORM_ESP8266,
|
PLATFORM_ESP8266,
|
||||||
|
CONF_PLATFORM_VERSION,
|
||||||
)
|
)
|
||||||
from esphome.core import CORE, coroutine_with_priority
|
from esphome.core import CORE, coroutine_with_priority
|
||||||
import esphome.config_validation as cv
|
import esphome.config_validation as cv
|
||||||
@ -146,7 +147,6 @@ def _parse_platform_version(value):
|
|||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
||||||
CONF_PLATFORM_VERSION = "platform_version"
|
|
||||||
ARDUINO_FRAMEWORK_SCHEMA = cv.All(
|
ARDUINO_FRAMEWORK_SCHEMA = cv.All(
|
||||||
cv.Schema(
|
cv.Schema(
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ from esphome.const import (
|
|||||||
KEY_TARGET_FRAMEWORK,
|
KEY_TARGET_FRAMEWORK,
|
||||||
KEY_TARGET_PLATFORM,
|
KEY_TARGET_PLATFORM,
|
||||||
PLATFORM_RP2040,
|
PLATFORM_RP2040,
|
||||||
|
CONF_PLATFORM_VERSION,
|
||||||
)
|
)
|
||||||
from esphome.core import CORE, coroutine_with_priority, EsphomeError
|
from esphome.core import CORE, coroutine_with_priority, EsphomeError
|
||||||
from esphome.helpers import mkdir_p, write_file, copy_file_if_changed
|
from esphome.helpers import mkdir_p, write_file, copy_file_if_changed
|
||||||
@ -125,8 +126,6 @@ def _parse_platform_version(value):
|
|||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
||||||
CONF_PLATFORM_VERSION = "platform_version"
|
|
||||||
|
|
||||||
ARDUINO_FRAMEWORK_SCHEMA = cv.All(
|
ARDUINO_FRAMEWORK_SCHEMA = cv.All(
|
||||||
cv.Schema(
|
cv.Schema(
|
||||||
{
|
{
|
||||||
|
@ -885,6 +885,7 @@ CONF_X_GRID = "x_grid"
|
|||||||
CONF_Y_GRID = "y_grid"
|
CONF_Y_GRID = "y_grid"
|
||||||
CONF_YEAR = "year"
|
CONF_YEAR = "year"
|
||||||
CONF_ZERO = "zero"
|
CONF_ZERO = "zero"
|
||||||
|
CONF_PLATFORM_VERSION = "platform_version"
|
||||||
|
|
||||||
TYPE_GIT = "git"
|
TYPE_GIT = "git"
|
||||||
TYPE_LOCAL = "local"
|
TYPE_LOCAL = "local"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user