Co-authored-by: Keith Burzinski <kbx81x@gmail.com> Co-authored-by: J. Nick Koston <nick@koston.org>
19 lines
334 B
C++
19 lines
334 B
C++
#pragma once
|
|
|
|
#include "esphome/components/button/button.h"
|
|
#include "../ld2412.h"
|
|
|
|
namespace esphome {
|
|
namespace ld2412 {
|
|
|
|
class QueryButton : public button::Button, public Parented<LD2412Component> {
|
|
public:
|
|
QueryButton() = default;
|
|
|
|
protected:
|
|
void press_action() override;
|
|
};
|
|
|
|
} // namespace ld2412
|
|
} // namespace esphome
|