Remove PowerMonitor.Manager project and its dependencies

This commit is contained in:
Marius
2026-03-10 12:27:06 +02:00
parent 41991e78b5
commit 27648ae57c
19 changed files with 1 additions and 1039 deletions
@@ -1,16 +0,0 @@
using PowerMonitorManager.Interface;
using PowerMonitorManager.Models;
namespace PowerMonitorManager;
public sealed class OtherPowerCalculationService : IOtherPowerCalculationService
{
public PowerCalculationResult CalculateOtherPower(double? totalHomePower, IReadOnlyList<double?> monitoredSensorValues)
{
var total = totalHomePower ?? 0.0;
var sumOfMonitored = monitoredSensorValues.Sum(v => v ?? 0.0);
var otherPower = Math.Max(0.0, total - sumOfMonitored);
return new PowerCalculationResult(otherPower, sumOfMonitored);
}
}