We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7ee42d commit f37b128Copy full SHA for f37b128
src/Ecowitt.Controller/Mapping/SensorBuilderLogic.cs
@@ -23,7 +23,7 @@ public partial class SensorBuilder
23
private static Sensor<int>? BuildCurrentSensor(string propertyName, string alias, string propertyValue, bool isMilliAmp = false)
24
{
25
return int.TryParse(propertyValue, out var value)
26
- ? new Sensor<int>(propertyName, alias, isMilliAmp ? value / 1000 : value, "A", SensorType.Current)
+ ? new Sensor<int>(propertyName, alias, value, isMilliAmp ? "mA" : "A", SensorType.Current)
27
: null;
28
}
29
0 commit comments