Provide fixed unit for sensors in data.json (#1876)
* Remove redundant second null check for sensor value * Add base formatted raw values to data.json for consistent units * Update HttpServer.cs --------- Co-authored-by: PhyxionNL <7643972+PhyxionNL@users.noreply.github.com>
This commit is contained in:
@@ -243,7 +243,7 @@ public class SensorNode : Node
|
||||
}
|
||||
case SensorType.TimeSpan:
|
||||
{
|
||||
return value.HasValue ? string.Format(Format, TimeSpan.FromSeconds(value.Value)) : "-";
|
||||
return string.Format(Format, TimeSpan.FromSeconds(value.Value));
|
||||
}
|
||||
default:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user