From a0647cbe71b6c93b1715c002107d3eeb07f77d91 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 19 Dec 2025 20:03:14 -1000 Subject: [PATCH] Update esphome/components/text_sensor/text_sensor.cpp --- esphome/components/text_sensor/text_sensor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/text_sensor/text_sensor.cpp b/esphome/components/text_sensor/text_sensor.cpp index 6789b13dc4..86d9e45bb3 100644 --- a/esphome/components/text_sensor/text_sensor.cpp +++ b/esphome/components/text_sensor/text_sensor.cpp @@ -72,7 +72,7 @@ void TextSensor::clear_filters() { } void TextSensor::add_on_state_callback(std::function callback) { - this->callbacks_.add_second(std::move(callback)); + this->callback_.add(std::move(callback)); } void TextSensor::add_on_raw_state_callback(std::function callback) { this->raw_callback_.add(std::move(callback));