diff --git a/esphome/components/bl0942/sensor.py b/esphome/components/bl0942/sensor.py index 550f534b74..f9fe7f5a5e 100644 --- a/esphome/components/bl0942/sensor.py +++ b/esphome/components/bl0942/sensor.py @@ -9,6 +9,7 @@ from esphome.const import ( CONF_ID, CONF_LINE_FREQUENCY, CONF_POWER, + CONF_RESET, CONF_VOLTAGE, DEVICE_CLASS_CURRENT, DEVICE_CLASS_ENERGY, @@ -27,7 +28,6 @@ from esphome.const import ( CONF_CURRENT_REFERENCE = "current_reference" CONF_ENERGY_REFERENCE = "energy_reference" CONF_POWER_REFERENCE = "power_reference" -CONF_RESET = "reset" CONF_VOLTAGE_REFERENCE = "voltage_reference" DEPENDENCIES = ["uart"] diff --git a/esphome/components/wl_134/text_sensor.py b/esphome/components/wl_134/text_sensor.py index d10627ab64..1a10396bc6 100644 --- a/esphome/components/wl_134/text_sensor.py +++ b/esphome/components/wl_134/text_sensor.py @@ -1,11 +1,10 @@ import esphome.codegen as cg from esphome.components import text_sensor, uart import esphome.config_validation as cv -from esphome.const import ICON_FINGERPRINT +from esphome.const import CONF_RESET, ICON_FINGERPRINT CODEOWNERS = ["@hobbypunk90"] DEPENDENCIES = ["uart"] -CONF_RESET = "reset" wl134_ns = cg.esphome_ns.namespace("wl_134") Wl134Component = wl134_ns.class_( diff --git a/esphome/const.py b/esphome/const.py index eab979e88d..199064dc3a 100644 --- a/esphome/const.py +++ b/esphome/const.py @@ -735,6 +735,7 @@ CONF_REFRESH = "refresh" CONF_RELABEL = "relabel" CONF_REPEAT = "repeat" CONF_REPOSITORY = "repository" +CONF_RESET = "reset" CONF_RESET_DURATION = "reset_duration" CONF_RESET_PIN = "reset_pin" CONF_RESIZE = "resize"