set min_soc_prozent 0 by default (#184)

#183 the current default value of "Null" is not compatible with the class_akku. A default value of 0 is more reasonable.
This commit is contained in:
Normann 2024-11-10 17:37:24 +01:00 committed by GitHub
parent dbc71dc158
commit 81de14d90a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -243,7 +243,7 @@ def flask_optimize():
# Optional min SoC PV Battery
if "min_soc_prozent" not in parameter:
parameter["min_soc_prozent"] = None
parameter["min_soc_prozent"] = 0
# Perform optimization simulation
result = opt_class.optimierung_ems(parameter=parameter, start_hour=datetime.now().hour)