ESPHome  2024.12.2
homeassistant_text_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 };
21 
22 } // namespace homeassistant
23 } // namespace esphome
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7