mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-10 19:06:36 +00:00
Fix energy graph when sum is 0 (#9914)
This commit is contained in:
parent
dd9a9b34d1
commit
324658a36b
@ -386,7 +386,7 @@ export class HuiEnergyUsageGraphCard
|
|||||||
if (stat.sum === null) {
|
if (stat.sum === null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!prevValue) {
|
if (prevValue === undefined) {
|
||||||
prevValue = stat.sum;
|
prevValue = stat.sum;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user