ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
factory_reset_button.h
Go to the documentation of this file.
1#pragma once
2
4#include "../ld2450.h"
5
6namespace esphome::ld2450 {
7
8class FactoryResetButton : public button::Button, public Parented<LD2450Component> {
9 public:
10 // User provided, not "= default": `new(p) FactoryResetButton()` would zero-fill .bss that is already zero.
12
13 protected:
14 void press_action() override;
15};
16
17} // namespace esphome::ld2450
Helper class to easily give an object a parent of type T.
Definition helpers.h:2073
Base class for all buttons.
Definition button.h:25