fix self consumed solar (#9651)

This commit is contained in:
Bram Kragten 2021-07-30 12:28:47 +02:00 committed by GitHub
parent 03080973be
commit 0ed5454d02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,7 @@ class HuiEnergySolarGaugeCard extends LitElement implements LovelaceCard {
let value: number | undefined;
if (productionReturnedToGrid !== null && totalSolarProduction) {
const cosumedSolar = Math.min(
const cosumedSolar = Math.max(
0,
totalSolarProduction - productionReturnedToGrid
);