use executor

This commit is contained in:
G Johansson 2025-07-20 11:12:05 +00:00
parent 1c4fbc658d
commit 3155ce1f53

View File

@ -265,8 +265,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: WorkdayConfigEntry) -> b
await _async_validate_country_and_province(hass, entry, country, province) await _async_validate_country_and_province(hass, entry, country, province)
entry.runtime_data = _get_obj_holidays( entry.runtime_data = await hass.async_add_executor_job(
country, province, year, language, categories _get_obj_holidays, country, province, year, language, categories
) )
add_remove_custom_holidays( add_remove_custom_holidays(