From 54199affc1261efd8407867ce9aa37779d07236f Mon Sep 17 00:00:00 2001 From: proddy Date: Tue, 21 Sep 2021 18:04:07 +0200 Subject: [PATCH] removed DeviceValueUOM::TEXT --- src/mqtt.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mqtt.cpp b/src/mqtt.cpp index 43acf6894..54fb0e809 100644 --- a/src/mqtt.cpp +++ b/src/mqtt.cpp @@ -1010,7 +1010,7 @@ void Mqtt::publish_ha_sensor(uint8_t type, // EMSdevice::Dev bool set_state_class = false; // unit of measure and map the HA icon - if ((uom != DeviceValueUOM::NONE) && (uom != DeviceValueUOM::TEXT)) { + if (uom != DeviceValueUOM::NONE) { doc["unit_of_meas"] = EMSdevice::uom_to_string(uom); } @@ -1060,7 +1060,6 @@ void Mqtt::publish_ha_sensor(uint8_t type, // EMSdevice::Dev doc["ic"] = F_(iconnum); break; case DeviceValueUOM::NONE: - case DeviceValueUOM::TEXT: default: break; }