mirror of
https://github.com/esphome/esphome.git
synced 2026-09-18 18:48:39 +00:00
Update esphome/components/text_sensor/text_sensor.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot
parent
4bfe09768c
commit
0543d65969
@@ -74,7 +74,7 @@ void TextSensor::clear_filters() {
|
||||
void TextSensor::add_on_state_callback(std::function<void(const std::string &)> callback) {
|
||||
this->callbacks_.add_second(std::move(callback));
|
||||
}
|
||||
void TextSensor::add_on_raw_state_callback(std::function<void(std::string)> callback) {
|
||||
void TextSensor::add_on_raw_state_callback(std::function<void(const std::string &)> callback) {
|
||||
this->raw_callback_.add(std::move(callback));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user