[const] Move `CONF_RESET` to const.py (#8889)

This commit is contained in:
Jesse Hills 2025-05-24 14:54:06 +12:00 committed by GitHub
parent 19e2460af2
commit 9dd4045984
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -9,6 +9,7 @@ from esphome.const import (
CONF_ID, CONF_ID,
CONF_LINE_FREQUENCY, CONF_LINE_FREQUENCY,
CONF_POWER, CONF_POWER,
CONF_RESET,
CONF_VOLTAGE, CONF_VOLTAGE,
DEVICE_CLASS_CURRENT, DEVICE_CLASS_CURRENT,
DEVICE_CLASS_ENERGY, DEVICE_CLASS_ENERGY,
@ -27,7 +28,6 @@ from esphome.const import (
CONF_CURRENT_REFERENCE = "current_reference" CONF_CURRENT_REFERENCE = "current_reference"
CONF_ENERGY_REFERENCE = "energy_reference" CONF_ENERGY_REFERENCE = "energy_reference"
CONF_POWER_REFERENCE = "power_reference" CONF_POWER_REFERENCE = "power_reference"
CONF_RESET = "reset"
CONF_VOLTAGE_REFERENCE = "voltage_reference" CONF_VOLTAGE_REFERENCE = "voltage_reference"
DEPENDENCIES = ["uart"] DEPENDENCIES = ["uart"]

View File

@ -1,11 +1,10 @@
import esphome.codegen as cg import esphome.codegen as cg
from esphome.components import text_sensor, uart from esphome.components import text_sensor, uart
import esphome.config_validation as cv import esphome.config_validation as cv
from esphome.const import ICON_FINGERPRINT from esphome.const import CONF_RESET, ICON_FINGERPRINT
CODEOWNERS = ["@hobbypunk90"] CODEOWNERS = ["@hobbypunk90"]
DEPENDENCIES = ["uart"] DEPENDENCIES = ["uart"]
CONF_RESET = "reset"
wl134_ns = cg.esphome_ns.namespace("wl_134") wl134_ns = cg.esphome_ns.namespace("wl_134")
Wl134Component = wl134_ns.class_( Wl134Component = wl134_ns.class_(

View File

@ -735,6 +735,7 @@ CONF_REFRESH = "refresh"
CONF_RELABEL = "relabel" CONF_RELABEL = "relabel"
CONF_REPEAT = "repeat" CONF_REPEAT = "repeat"
CONF_REPOSITORY = "repository" CONF_REPOSITORY = "repository"
CONF_RESET = "reset"
CONF_RESET_DURATION = "reset_duration" CONF_RESET_DURATION = "reset_duration"
CONF_RESET_PIN = "reset_pin" CONF_RESET_PIN = "reset_pin"
CONF_RESIZE = "resize" CONF_RESIZE = "resize"