rename uom::HZ to HERTZ, avoids compile error on ESP32C3

This commit is contained in:
MichaelDvP
2026-01-09 17:21:26 +01:00
parent e19e76546e
commit b64c392c58
3 changed files with 3 additions and 3 deletions

View File

@@ -1268,7 +1268,7 @@ void Mqtt::add_ha_classes(JsonObject doc, const uint8_t device_type, const uint8
doc[sc_ha] = sc_ha_total_increasing;
doc[dc_ha] = "monetary";
break;
case DeviceValueUOM::HZ:
case DeviceValueUOM::HERTZ:
doc[sc_ha] = sc_ha_measurement;
doc[dc_ha] = "frequency";
break;