17 lines
308 B
C++
17 lines
308 B
C++
#pragma once
|
|
|
|
#include "esphome/components/button/button.h"
|
|
#include "../ld2410.h"
|
|
|
|
namespace esphome::ld2410 {
|
|
|
|
class QueryButton : public button::Button, public Parented<LD2410Component> {
|
|
public:
|
|
QueryButton() = default;
|
|
|
|
protected:
|
|
void press_action() override;
|
|
};
|
|
|
|
} // namespace esphome::ld2410
|