ESPHome 2026.5.1
Loading...
Searching...
No Matches
homeassistant_binary_sensor.h
Go to the documentation of this file.
1#pragma once
2
5
7
9 public:
10 void set_entity_id(const char *entity_id) { this->entity_id_ = entity_id; }
11 void set_attribute(const char *attribute) { this->attribute_ = attribute; }
12 void setup() override;
13 void dump_config() override;
14 float get_setup_priority() const override;
15
16 protected:
17 const char *entity_id_{nullptr};
18 const char *attribute_{nullptr};
19 bool initial_{true};
20};
21
22} // namespace esphome::homeassistant
Base class for all binary_sensor-type classes.