powerConsumption missed subtraction of powerDelivery

This commit is contained in:
Patrick Haßel 2025-02-27 15:46:57 +01:00
parent ac50440215
commit f9e94357c8

View File

@ -46,7 +46,7 @@ export class AppComponent implements OnInit, OnDestroy {
}
get powerConsumption(): Value | undefined {
return this.powerPurchase?.plus(this.powerProduction);
return this.powerPurchase?.plus(this.powerProduction)?.minus(this.powerDelivery);
}
get powerProducedPercent(): Value | undefined {