Skip to content

Commit

Permalink
Add ruff
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
  • Loading branch information
Danielhiversen committed Dec 28, 2023
1 parent 4a00a98 commit 112715a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tibber/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,10 +571,10 @@ def current_attributes(self) -> dict[str, float]:
if now.date() == price_time.date():
max_price = max(max_price, price_total)
min_price = min(min_price, price_total)
if price_time.hour < 8: # noqa: PLR2004
if price_time.hour < 8: # noqa: PLR2004
off_peak_1 += price_total
num1 += 1
elif price_time.hour < 20: # noqa: PLR2004
elif price_time.hour < 20: # noqa: PLR2004
peak += price_total
num0 += 1
else:
Expand Down

0 comments on commit 112715a

Please sign in to comment.