Fix temperature aggregate

This commit is contained in:
2021-05-29 22:13:23 -04:00
parent ed58cabe9f
commit 4cb2ebe75a
2 changed files with 4 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ namespace ChrisKaczor.HomeMonitor.Weather.Service.Models
public decimal RainTotal { get; set; }
private readonly static List<int> _windDirectionValues = ((WindDirection[])Enum.GetValues(typeof(WindDirection))).Select(e => (int)e).ToList();
private static readonly List<int> _windDirectionValues = ((WindDirection[])Enum.GetValues(typeof(WindDirection))).Select(e => (int)e).ToList();
public WeatherAggregate(IEnumerable<WeatherReading> readings)
{
@@ -32,7 +32,7 @@ namespace ChrisKaczor.HomeMonitor.Weather.Service.Models
Humidity = new ReadingAggregate(readings, r => r.Humidity, 1);
Temperature = new ReadingAggregate(readings, r => r.PressureTemperature, 1);
Temperature = new ReadingAggregate(readings, r => r.HumidityTemperature, 1);
Pressure = new ReadingAggregate(readings, r => r.Pressure, 2);