From 1c9ba21a490bb37032d245717b3a57f65fe6e17a Mon Sep 17 00:00:00 2001 From: Michiel van Turnhout Date: Mon, 27 May 2019 11:03:49 +0200 Subject: [PATCH] Update esphome/components/mpr121/mpr121.h Co-Authored-By: Otto Winter --- esphome/components/mpr121/mpr121.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/mpr121/mpr121.h b/esphome/components/mpr121/mpr121.h index 5ddcc6e4bc..cdffbd0c35 100644 --- a/esphome/components/mpr121/mpr121.h +++ b/esphome/components/mpr121/mpr121.h @@ -60,7 +60,7 @@ class MPR121Channel : public binary_sensor::BinarySensor { protected: uint8_t channel_{0}; - uint8_t touch_threshold_{DEFAULT_TOUCH_THRESHOLD}; + optional touch_threshold_{}; uint8_t release_threshold_{DEFAULT_RELEASE_THRESHOLD}; };