mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 18:56:39 +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;
|
let value: number | undefined;
|
||||||
|
|
||||||
if (productionReturnedToGrid !== null && totalSolarProduction) {
|
if (productionReturnedToGrid !== null && totalSolarProduction) {
|
||||||
const cosumedSolar = Math.min(
|
const cosumedSolar = Math.max(
|
||||||
0,
|
0,
|
||||||
totalSolarProduction - productionReturnedToGrid
|
totalSolarProduction - productionReturnedToGrid
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user