ESPHome  2022.6.2
homeassistant_binary_sensor.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace esphome {
7 namespace homeassistant {
8 
10  public:
11  void set_entity_id(const std::string &entity_id) { entity_id_ = entity_id; }
12  void set_attribute(const std::string &attribute) { attribute_ = attribute; }
13  void setup() override;
14  void dump_config() override;
15  float get_setup_priority() const override;
16 
17  protected:
18  std::string entity_id_;
20  bool initial_{true};
21 };
22 
23 } // namespace homeassistant
24 } // namespace esphome
Definition: a4988.cpp:4
Base class for all binary_sensor-type classes.
Definition: binary_sensor.h:26