From 99379aab874278c1ab6ba7da9452c7cd56132fb8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 18 Dec 2024 17:34:47 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pvliveconsumer/nightime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)