From 3f3092782c88920f2e82f376ecaea732017bba2f Mon Sep 17 00:00:00 2001 From: bruxy70 Date: Wed, 18 May 2022 08:07:46 +0200 Subject: [PATCH] #398 - fix calendar refering to renamed method --- custom_components/garbage_collection/calendar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/garbage_collection/calendar.py b/custom_components/garbage_collection/calendar.py index e7c9775..2993439 100644 --- a/custom_components/garbage_collection/calendar.py +++ b/custom_components/garbage_collection/calendar.py @@ -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) @@ -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