mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-11 02:09:57 +03:00
add check for min/max when sending device values
This commit is contained in:
@@ -76,10 +76,3 @@ export const formatValueNoUOM = (value: any, uom: number) => {
|
||||
return value;
|
||||
}
|
||||
};
|
||||
|
||||
export function isNumberUOM(uom: number) {
|
||||
if (uom === DeviceValueUOM.NONE) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user