Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/control/counter_all/counter_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def get_id_evu_counter(self) -> int:
def set_home_consumption(self) -> None:
try:
home_consumption, elements = self._calc_home_consumption()
home_consumption = round(home_consumption, 2)
if home_consumption < 0:
log.error(
f"Ungültiger Hausverbrauch: {home_consumption}W, Berücksichtigte Komponenten neben EVU {elements}")
Expand All @@ -69,7 +70,7 @@ def set_home_consumption(self) -> None:
self.data.set.invalid_home_consumption = 0
self.data.set.home_consumption = home_consumption
imported, _ = self.sim_counter.sim_count(self.data.set.home_consumption)
self.data.set.imported_home_consumption = imported
self.data.set.imported_home_consumption = round(imported, 2)
except Exception:
log.exception("Fehler in der allgemeinen Zähler-Klasse")

Expand Down