This commit is contained in:
2026-06-28 14:22:13 +03:00
parent e6bf8258bb
commit 7f280bea7b
10 changed files with 54 additions and 17 deletions
+1 -4
View File
@@ -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