diff --git a/esphome/components/text_sensor/filter.cpp b/esphome/components/text_sensor/filter.cpp index ba77913d1b..80edae2b6c 100644 --- a/esphome/components/text_sensor/filter.cpp +++ b/esphome/components/text_sensor/filter.cpp @@ -51,7 +51,7 @@ optional ToUpperFilter::new_value(std::string value) { // ToLowerFilter optional ToLowerFilter::new_value(std::string value) { for (char &c : value) - c = ::toupper(c); + c = ::tolower(c); return value; }