Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ckvsoft committed Feb 23, 2025
1 parent eecf9c2 commit 5ad8040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solar/solarbatterycalculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def calculate_battery_percentage(self):
available_battery_capacity = ((full_battery_capacity_wh - actual_battery_capacity_wh) / 100) * remaining_battery_soc

self.logger.log.info(
f"Current Battery state: {round(actual_battery_capacity_wh, 2):.2} Wh, maximum: {round(full_battery_capacity_wh, 2):.2} Wh")
f"Current Battery state: {round(actual_battery_capacity_wh, 2):.2f} Wh, maximum: {round(full_battery_capacity_wh, 2):.2f} Wh")

# Überprüfen, ob die tatsächliche Solarproduktion den Verbrauch während der Sonnenstunden übersteigt
if actual_solar_during_daylight >= average_consumption:
Expand Down

0 comments on commit 5ad8040

Please sign in to comment.