Commit 8cc8b538 authored by Gonzalo Belcredi's avatar Gonzalo Belcredi

Storage power grid update state

parent 5ddb36fc
......@@ -38,7 +38,7 @@ class Storage:
return self.Status
def update_state(self):
if self.Level > self.MinLevel:
if self.Level >= self.MinLevel:
self.Status = 'Charged'
else:
self.Status = 'Discharged'
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment