[dallas_temp] Use const char* for set_timeout to fix deprecation warning and heap churn

This commit is contained in:
J. Nick Koston
2026-01-15 10:55:05 -10:00
parent 00cc9e44b6
commit 1542a01b77
@@ -44,7 +44,7 @@ void DallasTemperatureSensor::update() {
this->send_command_(DALLAS_COMMAND_START_CONVERSION);
this->set_timeout(this->get_address_name(), this->millis_to_wait_for_conversion_(), [this] {
this->set_timeout(this->get_address_name().c_str(), this->millis_to_wait_for_conversion_(), [this] {
if (!this->read_scratch_pad_() || !this->check_scratch_pad_()) {
this->publish_state(NAN);
return;