ESPHome 2025.12.1
Loading...
Searching...
No Matches
homeassistant_text_sensor.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace esphome {
7namespace homeassistant {
8
10 public:
11 void set_entity_id(const char *entity_id) { this->entity_id_ = entity_id; }
12 void set_attribute(const char *attribute) { this->attribute_ = attribute; }
13 void setup() override;
14 void dump_config() override;
15 float get_setup_priority() const override;
16
17 protected:
18 const char *entity_id_{nullptr};
19 const char *attribute_{nullptr};
20};
21
22} // namespace homeassistant
23} // namespace esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7