mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-09 01:09:51 +03:00
Merge branch 'emsesp:dev' into dev
This commit is contained in:
@@ -36,7 +36,7 @@ export function formatValue(
|
||||
}
|
||||
return (
|
||||
(value as string) +
|
||||
(uom === undefined || uom === 0 ? '' : ' ' + DeviceValueUOM_s[uom])
|
||||
(value === '' || uom === undefined || uom === 0 ? '' : ' ' + DeviceValueUOM_s[uom])
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ const SystemLog = () => {
|
||||
immediate: true,
|
||||
interceptByGlobalResponded: false
|
||||
})
|
||||
.onMessage((message: { id: number; data: string }) => {
|
||||
.onMessage((message: { data: string }) => {
|
||||
const rawData = message.data;
|
||||
const logentry = JSON.parse(rawData) as LogEntry;
|
||||
setLogEntries((log) => [...log, logentry]);
|
||||
|
||||
Reference in New Issue
Block a user