mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 01:07:45 +01:00
Move `CONF_BACKGROUND_COLOR
and
CONF_FOREGROUND_COLOR
` to const.py (#7202)
This commit is contained in:
parent
71ea2cec1f
commit
e6b1780a31
3 changed files with 17 additions and 15 deletions
|
@ -1,19 +1,22 @@
|
|||
import esphome.codegen as cg
|
||||
import esphome.config_validation as cv
|
||||
from esphome.components import display, font, color
|
||||
from esphome.const import CONF_DISPLAY, CONF_ID, CONF_TRIGGER_ID
|
||||
from esphome import automation, core
|
||||
|
||||
import esphome.codegen as cg
|
||||
from esphome.components import color, display, font
|
||||
from esphome.components.display_menu_base import (
|
||||
DISPLAY_MENU_BASE_SCHEMA,
|
||||
DisplayMenuComponent,
|
||||
display_menu_to_code,
|
||||
)
|
||||
import esphome.config_validation as cv
|
||||
from esphome.const import (
|
||||
CONF_BACKGROUND_COLOR,
|
||||
CONF_DISPLAY,
|
||||
CONF_FOREGROUND_COLOR,
|
||||
CONF_ID,
|
||||
CONF_TRIGGER_ID,
|
||||
)
|
||||
|
||||
CONF_FONT = "font"
|
||||
CONF_MENU_ITEM_VALUE = "menu_item_value"
|
||||
CONF_FOREGROUND_COLOR = "foreground_color"
|
||||
CONF_BACKGROUND_COLOR = "background_color"
|
||||
CONF_ON_REDRAW = "on_redraw"
|
||||
|
||||
graphical_display_menu_ns = cg.esphome_ns.namespace("graphical_display_menu")
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
from string import ascii_letters, digits
|
||||
import esphome.config_validation as cv
|
||||
|
||||
import esphome.codegen as cg
|
||||
from esphome.components import color
|
||||
from esphome.const import (
|
||||
CONF_VISIBLE,
|
||||
)
|
||||
from . import CONF_NEXTION_ID
|
||||
from . import Nextion
|
||||
import esphome.config_validation as cv
|
||||
from esphome.const import CONF_BACKGROUND_COLOR, CONF_FOREGROUND_COLOR, CONF_VISIBLE
|
||||
|
||||
from . import CONF_NEXTION_ID, Nextion
|
||||
|
||||
CONF_VARIABLE_NAME = "variable_name"
|
||||
CONF_COMPONENT_NAME = "component_name"
|
||||
|
@ -24,9 +23,7 @@ CONF_WAKE_UP_PAGE = "wake_up_page"
|
|||
CONF_START_UP_PAGE = "start_up_page"
|
||||
CONF_AUTO_WAKE_ON_TOUCH = "auto_wake_on_touch"
|
||||
CONF_WAVE_MAX_LENGTH = "wave_max_length"
|
||||
CONF_BACKGROUND_COLOR = "background_color"
|
||||
CONF_BACKGROUND_PRESSED_COLOR = "background_pressed_color"
|
||||
CONF_FOREGROUND_COLOR = "foreground_color"
|
||||
CONF_FOREGROUND_PRESSED_COLOR = "foreground_pressed_color"
|
||||
CONF_FONT_ID = "font_id"
|
||||
CONF_EXIT_REPARSE_ON_START = "exit_reparse_on_start"
|
||||
|
|
|
@ -74,6 +74,7 @@ CONF_AWAY = "away"
|
|||
CONF_AWAY_COMMAND_TOPIC = "away_command_topic"
|
||||
CONF_AWAY_CONFIG = "away_config"
|
||||
CONF_AWAY_STATE_TOPIC = "away_state_topic"
|
||||
CONF_BACKGROUND_COLOR = "background_color"
|
||||
CONF_BACKLIGHT_PIN = "backlight_pin"
|
||||
CONF_BASELINE = "baseline"
|
||||
CONF_BATTERY_LEVEL = "battery_level"
|
||||
|
@ -309,6 +310,7 @@ CONF_FLOW = "flow"
|
|||
CONF_FLOW_CONTROL_PIN = "flow_control_pin"
|
||||
CONF_FOR = "for"
|
||||
CONF_FORCE_UPDATE = "force_update"
|
||||
CONF_FOREGROUND_COLOR = "foreground_color"
|
||||
CONF_FORMALDEHYDE = "formaldehyde"
|
||||
CONF_FORMAT = "format"
|
||||
CONF_FORWARD_ACTIVE_ENERGY = "forward_active_energy"
|
||||
|
|
Loading…
Reference in a new issue