diff --git a/pvliveconsumer/nightime.py b/pvliveconsumer/nightime.py index 6d776cf..b046926 100644 --- a/pvliveconsumer/nightime.py +++ b/pvliveconsumer/nightime.py @@ -47,7 +47,7 @@ def make_night_time_zeros( # round start up to the nearest half hour start = start.replace(microsecond=0) - if (start.minute == 0 and start.second == 0): + if start.minute == 0 and start.second == 0: pass elif start.minute < 30 or (start.minute == 30 and start.second == 0): start = start.replace(minute=30, second=0, microsecond=0)