mirror of
https://github.com/esphome/esphome.git
synced 2024-11-14 02:58:11 +01:00
esp32_touch_binary_adaptive: fix formatting
This commit is contained in:
parent
e11e4eaaee
commit
b35f42f6b2
1 changed files with 2 additions and 6 deletions
|
@ -158,12 +158,8 @@ ESP32TouchBinarySensor::ESP32TouchBinarySensor(const std::string &name, touch_pa
|
||||||
: BinarySensor(name), touch_pad_(touch_pad), threshold_(threshold) {}
|
: BinarySensor(name), touch_pad_(touch_pad), threshold_(threshold) {}
|
||||||
touch_pad_t ESP32TouchBinarySensor::get_touch_pad() const { return this->touch_pad_; }
|
touch_pad_t ESP32TouchBinarySensor::get_touch_pad() const { return this->touch_pad_; }
|
||||||
uint16_t ESP32TouchBinarySensor::get_threshold() const { return this->threshold_; }
|
uint16_t ESP32TouchBinarySensor::get_threshold() const { return this->threshold_; }
|
||||||
void ESP32TouchBinarySensor::set_threshold(uint16_t threshold) {
|
void ESP32TouchBinarySensor::set_threshold(uint16_t threshold) { this->threshold_ = threshold; }
|
||||||
this->threshold_ = threshold;
|
uint16_t ESP32TouchBinarySensor::get_value() const { return this->value_; }
|
||||||
}
|
|
||||||
uint16_t ESP32TouchBinarySensor::get_value () const {
|
|
||||||
return this->value_;
|
|
||||||
}
|
|
||||||
} // namespace esp32_touch
|
} // namespace esp32_touch
|
||||||
} // namespace esphome
|
} // namespace esphome
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue