fix stop hour

This commit is contained in:
Florian Bezannier
2020-11-25 16:30:17 +01:00
parent ee6ba3208b
commit 27353cbecc
+1 -1
View File
@@ -58,7 +58,7 @@ class ChargeControl:
self.thread:threading.Timer = None
def set_stop_hour(self,stop_hour):
if stop_hour == [0, 0]:
if stop_hour is None or stop_hour == [0, 0]:
self._stop_hour = None
self._next_stop_hour = None
else: