mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
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
This commit is contained in:
parent
b9d34603e4
commit
cdd17b4215
@ -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 = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user