diff --git a/esphome/components/dfrobot_sen0395/__init__.py b/esphome/components/dfrobot_sen0395/__init__.py index e772db5a15..6dba6192ff 100644 --- a/esphome/components/dfrobot_sen0395/__init__.py +++ b/esphome/components/dfrobot_sen0395/__init__.py @@ -3,7 +3,7 @@ import esphome.config_validation as cv from esphome import automation from esphome import core from esphome.automation import maybe_simple_id -from esphome.const import CONF_ID +from esphome.const import CONF_ID, CONF_FACTORY_RESET from esphome.components import uart CODEOWNERS = ["@niklasweber"] @@ -29,7 +29,6 @@ CONF_DELAY_AFTER_DETECT = "delay_after_detect" CONF_DELAY_AFTER_DISAPPEAR = "delay_after_disappear" CONF_DETECTION_SEGMENTS = "detection_segments" CONF_OUTPUT_LATENCY = "output_latency" -CONF_FACTORY_RESET = "factory_reset" CONF_SENSITIVITY = "sensitivity" CONFIG_SCHEMA = cv.All( diff --git a/esphome/components/ld2410/button/__init__.py b/esphome/components/ld2410/button/__init__.py index 3567114c2c..dec219ebb3 100644 --- a/esphome/components/ld2410/button/__init__.py +++ b/esphome/components/ld2410/button/__init__.py @@ -8,6 +8,7 @@ from esphome.const import ( ICON_RESTART, ICON_RESTART_ALERT, ICON_DATABASE, + CONF_FACTORY_RESET, ) from .. import CONF_LD2410_ID, LD2410Component, ld2410_ns @@ -15,7 +16,6 @@ QueryButton = ld2410_ns.class_("QueryButton", button.Button) ResetButton = ld2410_ns.class_("ResetButton", button.Button) RestartButton = ld2410_ns.class_("RestartButton", button.Button) -CONF_FACTORY_RESET = "factory_reset" CONF_RESTART = "restart" CONF_QUERY_PARAMS = "query_params" diff --git a/esphome/components/ld2420/button/__init__.py b/esphome/components/ld2420/button/__init__.py index 675e041dd4..07dce316d2 100644 --- a/esphome/components/ld2420/button/__init__.py +++ b/esphome/components/ld2420/button/__init__.py @@ -8,6 +8,7 @@ from esphome.const import ( ICON_RESTART, ICON_RESTART_ALERT, ICON_DATABASE, + CONF_FACTORY_RESET, ) from .. import CONF_LD2420_ID, LD2420Component, ld2420_ns @@ -19,7 +20,6 @@ LD2420FactoryResetButton = ld2420_ns.class_("LD2420FactoryResetButton", button.B CONF_APPLY_CONFIG = "apply_config" CONF_REVERT_CONFIG = "revert_config" CONF_RESTART_MODULE = "restart_module" -CONF_FACTORY_RESET = "factory_reset" CONFIG_SCHEMA = {