Skip to content

Commit

Permalink
#398 - fix calendar refering to renamed method
Browse files Browse the repository at this point in the history
  • Loading branch information
bruxy70 committed May 18, 2022
1 parent df138bb commit 3f30927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/garbage_collection/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async def async_get_events(
):
continue
garbage_collection = hass.data[DOMAIN][SENSOR_PLATFORM][entity]
start = await garbage_collection.async_next_date(start_date, True)
start = garbage_collection.get_next_date(start_date, True)
while start is not None and start >= start_date and start <= end_date:
try:
end = start + timedelta(days=1)
Expand All @@ -120,7 +120,7 @@ async def async_get_events(
end=datetime.combine(start, garbage_collection.expire_after),
)
events.append(event)
start = await garbage_collection.async_next_date(
start = garbage_collection.get_next_date(
start + timedelta(days=1), True
)
return events
Expand Down

0 comments on commit 3f30927

Please sign in to comment.