From cdd17b4215c0d5097bc3f287dc1361eac4477912 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 14 Oct 2020 01:18:23 -0500 Subject: [PATCH] Update caldav to use async_add_executor_job (#41808) self.calendar.date_search was already being run in the executor in other places so this should be safe --- homeassistant/components/caldav/calendar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/caldav/calendar.py b/homeassistant/components/caldav/calendar.py index 1f1de734a8f..7abb0ad8444 100644 --- a/homeassistant/components/caldav/calendar.py +++ b/homeassistant/components/caldav/calendar.py @@ -167,7 +167,7 @@ class WebDavCalendarData: async def async_get_events(self, hass, start_date, end_date): """Get all events in a specific time frame.""" # Get event list from the current calendar - vevent_list = await hass.async_add_job( + vevent_list = await hass.async_add_executor_job( self.calendar.date_search, start_date, end_date ) event_list = []