From 1db235c2c5b16127ab724537c058f42ad07083f2 Mon Sep 17 00:00:00 2001 From: Spencer Yan Date: Thu, 24 Oct 2024 11:24:04 +0800 Subject: [PATCH] chore(mr60fda2): use macro for factory_reset --- esphome/components/seeed_mr60fda2/button/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/seeed_mr60fda2/button/__init__.py b/esphome/components/seeed_mr60fda2/button/__init__.py index ae47e70646..29a8770b9c 100644 --- a/esphome/components/seeed_mr60fda2/button/__init__.py +++ b/esphome/components/seeed_mr60fda2/button/__init__.py @@ -7,6 +7,7 @@ from esphome.const import ( ENTITY_CATEGORY_DIAGNOSTIC, ENTITY_CATEGORY_NONE, ) +from const import CONF_FACTORY_RESET from .. import CONF_MR60FDA2_ID, MR60FDA2Component, mr60fda2_ns @@ -16,7 +17,6 @@ GetRadarParametersButton = mr60fda2_ns.class_("GetRadarParametersButton", button ResetRadarButton = mr60fda2_ns.class_("ResetRadarButton", button.Button) CONF_GET_RADAR_PARAMETERS = "get_radar_parameters" -CONF_FACTORY_RESET = "factory_reset" CONFIG_SCHEMA = { cv.GenerateID(CONF_MR60FDA2_ID): cv.use_id(MR60FDA2Component),