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:
Sab44
2025-09-23 10:46:06 +02:00
committed by GitHub
co-authored by PhyxionNL
parent c234bb5a88
commit be647cce78
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -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:
{