Skip to content

Commit

Permalink
adjusted days of week
Browse files Browse the repository at this point in the history
  • Loading branch information
iesus committed Jun 2, 2020
1 parent 987af4d commit cf18686
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/pollenniva/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ def translateDayNumber(self, day):

tomorrow = today+2
if tomorrow > 6:
tomorrow = tomorrow - 6
tomorrow = tomorrow - 7
day_after_tomorrow = today+3
if day_after_tomorrow > 6:
day_after_tomorrow = day_after_tomorrow - 6
day_after_tomorrow = day_after_tomorrow - 7

translate_days[2] = days_of_the_week[tomorrow]
translate_days[3] = days_of_the_week[day_after_tomorrow]
Expand Down

0 comments on commit cf18686

Please sign in to comment.