ESPHome  2024.12.2
tuya_text_sensor.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace tuya {
9 
11  public:
12  void setup() override;
13  void dump_config() override;
14  void set_sensor_id(uint8_t sensor_id) { this->sensor_id_ = sensor_id; }
15 
16  void set_tuya_parent(Tuya *parent) { this->parent_ = parent; }
17 
18  protected:
20  uint8_t sensor_id_{0};
21 };
22 
23 } // namespace tuya
24 } // namespace esphome
void set_sensor_id(uint8_t sensor_id)
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
void set_tuya_parent(Tuya *parent)