mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59: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;
|
bool set_state_class = false;
|
||||||
|
|
||||||
// unit of measure and map the HA icon
|
// 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);
|
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);
|
doc["ic"] = F_(iconnum);
|
||||||
break;
|
break;
|
||||||
case DeviceValueUOM::NONE:
|
case DeviceValueUOM::NONE:
|
||||||
case DeviceValueUOM::TEXT:
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user