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
5 changes: 3 additions & 2 deletions packages/modules/devices/sma/sma_sunny_boy/inverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ def read(self) -> InverterState:
else:
raise ValueError("Unbekannte Version "+str(self.component_config.configuration.version))
if power_total == self.SMA_INT32_NAN or power_total == self.SMA_NAN:
raise ValueError(f'Wechselrichter lieferte nicht plausiblen Leistungswert: {power_total}.')

power_total = 0
# WR geht nachts in Standby und gibt einen NaN-Wert für die Leistung aus.
currents = [0, 0, 0]
if energy == self.SMA_UINT32_NAN:
raise ValueError(
f'Wechselrichter lieferte nicht plausiblen Zählerstand: {energy}. '
Expand Down