Skip to content

Commit 08d3976

Browse files
author
NoBl
committed
more numbers getting their properties back
1 parent 54a041f commit 08d3976

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ class Senec extends utils.Adapter {
477477
}
478478
}
479479
}
480-
const autarky = (((obj.aggregation.stromerzeugung.wert - obj.aggregation.netzeinspeisung.wert - obj.aggregation.speicherbeladung.wert + obj.aggregation.speicherentnahme.wert) / obj.aggregation.stromverbrauch.wert) * 100).toFixed(2);
480+
const autarky = Number((((obj.aggregation.stromerzeugung.wert - obj.aggregation.netzeinspeisung.wert - obj.aggregation.speicherbeladung.wert + obj.aggregation.speicherentnahme.wert) / obj.aggregation.stromverbrauch.wert) * 100).toFixed(2));
481481
this.doState(pfx + "Autarkie", autarky, "", "%", false);
482482
}
483483

0 commit comments

Comments
 (0)