Skip to content

Commit

Permalink
style: Blacken util.py
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger committed May 3, 2021
1 parent fe2ab6b commit 1fe2301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/weenect/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ def parse_duration(duration: str) -> Optional[timedelta]:
if duration.endswith("M"):
return timedelta(minutes=float(duration[:-1]))
if duration.endswith("H"):
return timedelta(hours=float(duration[:-1]))
return timedelta(hours=float(duration[:-1]))

0 comments on commit 1fe2301

Please sign in to comment.