diff --git a/esphome/components/seeed_mr60fda2/button/__init__.py b/esphome/components/seeed_mr60fda2/button/__init__.py index 24b7946aef..d59d73736c 100644 --- a/esphome/components/seeed_mr60fda2/button/__init__.py +++ b/esphome/components/seeed_mr60fda2/button/__init__.py @@ -42,4 +42,4 @@ async def to_code(config): if reset_radar_config := config.get(CONF_FACTORY_RESET): b = await button.new_button(reset_radar_config) await cg.register_parented(b, config[CONF_MR60FDA2_ID]) - cg.add(mr60fda2_component.set_reset_radar_button(b)) + cg.add(mr60fda2_component.set_factory_reset_button(b)) diff --git a/esphome/components/seeed_mr60fda2/seeed_mr60fda2.cpp b/esphome/components/seeed_mr60fda2/seeed_mr60fda2.cpp index 2fd7594145..d28ed055b5 100644 --- a/esphome/components/seeed_mr60fda2/seeed_mr60fda2.cpp +++ b/esphome/components/seeed_mr60fda2/seeed_mr60fda2.cpp @@ -18,7 +18,7 @@ void MR60FDA2Component::dump_config() { #endif #ifdef USE_BUTTON LOG_BUTTON(" ", "Get Radar Parameters Button", this->get_radar_parameters_button_); - LOG_BUTTON(" ", "Reset Radar Button", this->reset_radar_button_); + LOG_BUTTON(" ", "Reset Radar Button", this->factory_reset_button_); #endif #ifdef USE_SELECT LOG_SELECT(" ", "Install Height Select", this->install_height_select_); diff --git a/esphome/components/seeed_mr60fda2/seeed_mr60fda2.h b/esphome/components/seeed_mr60fda2/seeed_mr60fda2.h index 47b18e6b54..3a3edd1ae9 100644 --- a/esphome/components/seeed_mr60fda2/seeed_mr60fda2.h +++ b/esphome/components/seeed_mr60fda2/seeed_mr60fda2.h @@ -65,7 +65,7 @@ class MR60FDA2Component : public Component, #endif #ifdef USE_BUTTON SUB_BUTTON(get_radar_parameters) - SUB_BUTTON(reset_radar) + SUB_BUTTON(factory_reset) #endif #ifdef USE_SELECT SUB_SELECT(install_height) diff --git a/tests/components/seeed_mr60fda2/common.yaml b/tests/components/seeed_mr60fda2/common.yaml index 47e10025d3..55a7cc1ab3 100644 --- a/tests/components/seeed_mr60fda2/common.yaml +++ b/tests/components/seeed_mr60fda2/common.yaml @@ -21,7 +21,7 @@ button: - platform: seeed_mr60fda2 get_radar_parameters: name: "Get Radar Parameters" - reset_radar: + factory_reset: name: "Reset" select: