Skip to content

Commit

Permalink
set current hour value None in class_ems.py
Browse files Browse the repository at this point in the history
  • Loading branch information
NormannK authored Oct 8, 2024
1 parent cf27ddf commit 6b92aad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/akkudoktoreos/class_ems.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,8 @@ def simuliere(self, start_stunde: int) -> dict:
"Haushaltsgeraet_wh_pro_stunde": haushaltsgeraet_wh_pro_stunde,
}

# set the first value to None so no action will be done in the current hour
out["Last_Wh_pro_Stunde"][0] = None
out["Netzeinspeisung_Wh_pro_Stunde"][0] = None
out["Netzbezug_Wh_pro_Stunde"][0] = None
return out

0 comments on commit 6b92aad

Please sign in to comment.