From 676829a988b81f1709aed4db7e877378d49724ee Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Tue, 26 May 2026 17:21:11 +0200 Subject: [PATCH] Remove mode from Reading value - already present in Mode. --- esphome/owon_b35t.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 };