Skip to content

Commit

Permalink
Fix incorrect type assignment
Browse files Browse the repository at this point in the history
Closes #28
  • Loading branch information
pinkywafer authored Feb 17, 2020
1 parent 4193c04 commit f828f7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/anniversaries/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ async def async_update(self):
daysRemaining = (nextDate - today).days
years = years + 1
if self._unknown_year:
self._date = nextDate
self._date = datetime(nextDate.year, nextDate.month, nextDate.day)

if daysRemaining == 0:
self._icon = self._icon_today
Expand All @@ -126,4 +126,4 @@ async def async_update(self):
self._state = daysRemaining
self._years_next = years
self._years_current = years - 1
self._weeks_remaining = int(daysRemaining / 7)
self._weeks_remaining = int(daysRemaining / 7)

0 comments on commit f828f7a

Please sign in to comment.