mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
fix self consumed solar (#9651)
This commit is contained in:
parent
03080973be
commit
0ed5454d02
@ -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
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user