diff --git a/esphome/owon_b35t.h b/esphome/owon_b35t.h index 89b6cc3..3b01072 100644 --- a/esphome/owon_b35t.h +++ b/esphome/owon_b35t.h @@ -203,10 +203,7 @@ class Meter { if (this->overload) return "OL " + std::string(this->scale()) + this->unit(); char buf[48]; snprintf(buf, sizeof(buf), "%s%.4g %s%s", this->negative() ? "-" : "", std::fabs(this->display_value), this->scale(), this->unit()); - std::string out(buf); - auto mode = this->mode_text(); - if (!mode.empty()) out += " " + mode; - return out; + return std::string(buf); } enum Kind { KIND_OTHER, KIND_VOLTAGE, KIND_CURRENT, KIND_RESISTANCE, KIND_FREQUENCY, KIND_CAPACITANCE, KIND_TEMP_C, KIND_TEMP_F, KIND_DUTY };