🗑 Custom Home Assistant sensor for scheduling garbage collection (or other regularly re-occurring events - weekly on given days, semi-weekly or monthly)
2022-05-18 00:37:12 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 222, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 219, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/calendar/__init__.py", line 337, in get
calendar_event_list = await entity.async_get_events(
File "/config/custom_components/garbage_collection/calendar.py", line 54, in async_get_events
return await self.hass.data[DOMAIN][CALENDAR_PLATFORM].async_get_events(
File "/config/custom_components/garbage_collection/calendar.py", line 104, in async_get_events
start = await garbage_collection.async_next_date(start_date, True)
AttributeError: 'WeeklyCollection' object has no attribute 'async_next_date'
Before you submit a new bug report, please check that
Describe the bug
After update from 4.7.6 to 4.7.7 collection days no longer show on the calendar. The sensors appear to still be working correctly.
Appears to be caused by 50c62a0958026a2658893f413846982f97d8c8b1
Calendar.py still references the old function https://github.com/bruxy70/Garbage-Collection/blob/master/custom_components/garbage_collection/calendar.py#L104
Configuration
Debug logs