diff --git a/custom_components/pollenniva/sensor.py b/custom_components/pollenniva/sensor.py index c9966d3..b3a2eca 100644 --- a/custom_components/pollenniva/sensor.py +++ b/custom_components/pollenniva/sensor.py @@ -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]