mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
removed DeviceValueUOM::TEXT
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user