diff --git a/esphome/components/esp32_touch/esp32_touch.cpp b/esphome/components/esp32_touch/esp32_touch.cpp index 8be9ab943c..87cefecc08 100644 --- a/esphome/components/esp32_touch/esp32_touch.cpp +++ b/esphome/components/esp32_touch/esp32_touch.cpp @@ -158,12 +158,8 @@ ESP32TouchBinarySensor::ESP32TouchBinarySensor(const std::string &name, touch_pa : BinarySensor(name), touch_pad_(touch_pad), threshold_(threshold) {} touch_pad_t ESP32TouchBinarySensor::get_touch_pad() const { return this->touch_pad_; } uint16_t ESP32TouchBinarySensor::get_threshold() const { return this->threshold_; } -void ESP32TouchBinarySensor::set_threshold(uint16_t threshold) { - this->threshold_ = threshold; -} -uint16_t ESP32TouchBinarySensor::get_value () const { - return this->value_; -} +void ESP32TouchBinarySensor::set_threshold(uint16_t threshold) { this->threshold_ = threshold; } +uint16_t ESP32TouchBinarySensor::get_value() const { return this->value_; } } // namespace esp32_touch } // namespace esphome