1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 11:22:24 +01:00

fix to_lower filter (#4015)

This commit is contained in:
Samuel Sieb
2022-11-10 10:40:53 -08:00
committed by Jesse Hills
parent 3aeef1afd4
commit fcb02af782

View File

@@ -51,7 +51,7 @@ optional<std::string> ToUpperFilter::new_value(std::string value) {
// ToLowerFilter
optional<std::string> ToLowerFilter::new_value(std::string value) {
for (char &c : value)
c = ::toupper(c);
c = ::tolower(c);
return value;
}