mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +01:00
refactor(mr60fda2): fix factory_reset button defination
This commit is contained in:
parent
0e26f405bc
commit
02b1eb6382
4 changed files with 4 additions and 4 deletions
|
@ -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))
|
||||
|
|
|
@ -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_);
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -21,7 +21,7 @@ button:
|
|||
- platform: seeed_mr60fda2
|
||||
get_radar_parameters:
|
||||
name: "Get Radar Parameters"
|
||||
reset_radar:
|
||||
factory_reset:
|
||||
name: "Reset"
|
||||
|
||||
select:
|
||||
|
|
Loading…
Reference in a new issue