mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-26 16:49:11 +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,
|
MBAR,
|
||||||
LH,
|
LH,
|
||||||
CTKWH,
|
CTKWH,
|
||||||
HZ
|
HERTZ
|
||||||
}
|
}
|
||||||
|
|
||||||
export const DeviceValueUOM_s = [
|
export const DeviceValueUOM_s = [
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ class DeviceValue {
|
|||||||
MBAR, // 24 - mbar - atmospheric pressure
|
MBAR, // 24 - mbar - atmospheric pressure
|
||||||
LH, // 25 - l/h - volume flow rate
|
LH, // 25 - l/h - volume flow rate
|
||||||
CTKWH, // 26 - ct/kWh - monetary
|
CTKWH, // 26 - ct/kWh - monetary
|
||||||
HZ, // 27 - Hz - frequency
|
HERTZ, // 27 - Hz - frequency
|
||||||
CONNECTIVITY // 28 - used in HA - connectivity
|
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[sc_ha] = sc_ha_total_increasing;
|
||||||
doc[dc_ha] = "monetary";
|
doc[dc_ha] = "monetary";
|
||||||
break;
|
break;
|
||||||
case DeviceValueUOM::HZ:
|
case DeviceValueUOM::HERTZ:
|
||||||
doc[sc_ha] = sc_ha_measurement;
|
doc[sc_ha] = sc_ha_measurement;
|
||||||
doc[dc_ha] = "frequency";
|
doc[dc_ha] = "frequency";
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user