ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
homeassistant_button.h
Go to the documentation of this file.
1#pragma once
2
5
7
8class HomeassistantButton final : public button::Button, public Component {
9 public:
10 void set_entity_id(const char *entity_id) { this->entity_id_ = entity_id; }
11
12 void dump_config() override;
13 float get_setup_priority() const override;
14
15 protected:
16 void press_action() override;
17
18 const char *entity_id_{nullptr};
19};
20
21} // namespace esphome::homeassistant
Base class for all buttons.
Definition button.h:25