mirror of
https://github.com/esphome/esphome.git
synced 2025-07-29 14:46:40 +00:00
[code quality] move const to esphome/const.py (#9632)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
558e175c6b
commit
7cdb48b820
@ -17,6 +17,7 @@ from esphome.const import (
|
||||
CONF_MODE,
|
||||
CONF_NUMBER,
|
||||
CONF_ON_VALUE,
|
||||
CONF_SWITCH,
|
||||
CONF_TEXT,
|
||||
CONF_TRIGGER_ID,
|
||||
CONF_TYPE,
|
||||
@ -33,7 +34,6 @@ CONF_LABEL = "label"
|
||||
CONF_MENU = "menu"
|
||||
CONF_BACK = "back"
|
||||
CONF_SELECT = "select"
|
||||
CONF_SWITCH = "switch"
|
||||
CONF_ON_TEXT = "on_text"
|
||||
CONF_OFF_TEXT = "off_text"
|
||||
CONF_VALUE_LAMBDA = "value_lambda"
|
||||
|
@ -1,9 +1,9 @@
|
||||
from esphome.const import CONF_SWITCH
|
||||
|
||||
from ..defines import CONF_INDICATOR, CONF_KNOB, CONF_MAIN
|
||||
from ..types import LvBoolean
|
||||
from . import WidgetType
|
||||
|
||||
CONF_SWITCH = "switch"
|
||||
|
||||
|
||||
class SwitchType(WidgetType):
|
||||
def __init__(self):
|
||||
|
@ -922,6 +922,7 @@ CONF_SWING_MODE_COMMAND_TOPIC = "swing_mode_command_topic"
|
||||
CONF_SWING_MODE_STATE_TOPIC = "swing_mode_state_topic"
|
||||
CONF_SWING_OFF_ACTION = "swing_off_action"
|
||||
CONF_SWING_VERTICAL_ACTION = "swing_vertical_action"
|
||||
CONF_SWITCH = "switch"
|
||||
CONF_SWITCH_DATAPOINT = "switch_datapoint"
|
||||
CONF_SWITCHES = "switches"
|
||||
CONF_SYNC = "sync"
|
||||
|
Loading…
x
Reference in New Issue
Block a user