Skip to content

Commit

Permalink
more numbers getting their properties back
Browse files Browse the repository at this point in the history
  • Loading branch information
NoBl committed Sep 7, 2023
1 parent 54a041f commit 08d3976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ class Senec extends utils.Adapter {
}
}
}
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);
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));
this.doState(pfx + "Autarkie", autarky, "", "%", false);
}

Expand Down

0 comments on commit 08d3976

Please sign in to comment.