1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

just remove it

This commit is contained in:
J. Nick Koston
2025-10-07 22:33:37 -10:00
parent f33d9a77f3
commit b22e154284
2 changed files with 1 additions and 10 deletions

View File

@@ -62,7 +62,7 @@ class MDNSComponent : public Component {
/// Add a dynamic TXT value and return pointer to it for use in MDNSTXTRecord
const char *add_dynamic_txt_value(const std::string &value) {
this->dynamic_txt_values_.push_back(value);
return this->dynamic_txt_values_.back().c_str();
return this->dynamic_txt_values_[this->dynamic_txt_values_.size() - 1].c_str();
}
/// Storage for runtime-generated TXT values (MAC address, user lambdas)