mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-26 08:39:09 +03:00
rename uom::HZ to HERTZ, avoids compile error on ESP32C3
This commit is contained in:
@@ -196,7 +196,7 @@ export enum DeviceValueUOM {
|
||||
MBAR,
|
||||
LH,
|
||||
CTKWH,
|
||||
HZ
|
||||
HERTZ
|
||||
}
|
||||
|
||||
export const DeviceValueUOM_s = [
|
||||
|
||||
@@ -76,7 +76,7 @@ class DeviceValue {
|
||||
MBAR, // 24 - mbar - atmospheric pressure
|
||||
LH, // 25 - l/h - volume flow rate
|
||||
CTKWH, // 26 - ct/kWh - monetary
|
||||
HZ, // 27 - Hz - frequency
|
||||
HERTZ, // 27 - Hz - frequency
|
||||
CONNECTIVITY // 28 - used in HA - connectivity
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user