mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-10 17:59:53 +03:00
formatting
This commit is contained in:
@@ -25,7 +25,11 @@ const formatDurationMin = (LL: TranslationFunctions, duration_min: number) => {
|
||||
return formatted;
|
||||
};
|
||||
|
||||
export function formatValue(LL: TranslationFunctions, value: unknown, uom: DeviceValueUOM) {
|
||||
export function formatValue(
|
||||
LL: TranslationFunctions,
|
||||
value: unknown,
|
||||
uom: DeviceValueUOM
|
||||
) {
|
||||
if (typeof value !== 'number') {
|
||||
return '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user