mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-09 18:36:35 +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) {
|
||||
return;
|
||||
}
|
||||
if (!prevValue) {
|
||||
if (prevValue === undefined) {
|
||||
prevValue = stat.sum;
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user