mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
use executor
This commit is contained in:
parent
1c4fbc658d
commit
3155ce1f53
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user