Refactor services to use DI for IHaContext and TimeProvider
This commit is contained in:
@@ -177,11 +177,11 @@ public sealed class ReplayOrchestrationService
|
||||
var detection = new ShowerMonitorManager.ShowerDetectionService(
|
||||
rateCalc,
|
||||
showerOpts);
|
||||
var fan = new ExhaustFanControlService(showerOpts);
|
||||
var fan = new ExhaustFanControlService(replayHaContext, showerOpts);
|
||||
|
||||
runners.Add(new ShowerReplayRunner(
|
||||
historyTimeline, timeProvider, Timeline, DataSeries,
|
||||
detection, fan, replayHaContext,
|
||||
detection, fan,
|
||||
_serviceProvider.GetRequiredService<ILogger<ShowerReplayRunner>>(),
|
||||
replayOptions, showerOpts));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user