Fix bugs
This commit is contained in:
@@ -20,7 +20,6 @@ public sealed class ShowerMonitorInit : IShowerMonitorInit
|
||||
private readonly IHaContext _haContext;
|
||||
private readonly IScheduler _scheduler;
|
||||
private readonly IShowerDetectionService _detectionService;
|
||||
private readonly IHumidityRateCalculator _rateCalculator;
|
||||
private readonly IExhaustFanControlService _fanControlService;
|
||||
private readonly IShowerMonitorEntityService _entityService;
|
||||
private readonly ShowerMonitorOptions _options;
|
||||
@@ -32,7 +31,6 @@ public sealed class ShowerMonitorInit : IShowerMonitorInit
|
||||
ILogger<ShowerMonitorInit> logger,
|
||||
IScheduler scheduler,
|
||||
IShowerDetectionService detectionService,
|
||||
IHumidityRateCalculator rateCalculator,
|
||||
IExhaustFanControlService fanControlService,
|
||||
IShowerMonitorEntityService entityService,
|
||||
IOptions<ShowerMonitorOptions> options)
|
||||
@@ -41,7 +39,6 @@ public sealed class ShowerMonitorInit : IShowerMonitorInit
|
||||
_logger = logger;
|
||||
_scheduler = scheduler;
|
||||
_detectionService = detectionService;
|
||||
_rateCalculator = rateCalculator;
|
||||
_fanControlService = fanControlService;
|
||||
_entityService = entityService;
|
||||
_options = options.Value;
|
||||
@@ -189,7 +186,7 @@ public sealed class ShowerMonitorInit : IShowerMonitorInit
|
||||
BathroomHumidity = bathroomHumidity.Value,
|
||||
MainHomeHumidity = mainHomeHumidity.Value,
|
||||
Differential = differential,
|
||||
HumidityRate = _rateCalculator.GetRatePerMinute(),
|
||||
HumidityRate = _detectionService.LastRate,
|
||||
TodaySessionCount = _detectionService.TodaySessionCount,
|
||||
LastCompletedSession = _detectionService.LastCompletedSession,
|
||||
CurrentSession = _detectionService.CurrentSession
|
||||
|
||||
Reference in New Issue
Block a user