ESPHome  2022.6.2
tuya_binary_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)
Definition: a4988.cpp:4
Base class for all binary_sensor-type classes.
Definition: binary_sensor.h:26