We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13d2e58 commit e71d50fCopy full SHA for e71d50f
src/Ecowitt.Controller/Mapping/SensorBuilderLogic.cs
@@ -8,7 +8,7 @@ public partial class SensorBuilder
8
private static Sensor<double>? BuildWaterFlowSensor(string propertyName, string alias, string propertyValue, bool isMetric = true)
9
{
10
return double.TryParse(propertyValue, out var value)
11
- ? new Sensor<double>(propertyName, alias, isMetric ? L2G(value) : value, isMetric ? "L/min" : "gal/min", SensorType.VolumeFlowRate)
+ ? new Sensor<double>(propertyName, alias, isMetric ? value : L2G(value), isMetric ? "L/min" : "gal/min", SensorType.VolumeFlowRate)
12
: null;
13
}
14
0 commit comments