mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 06:37:52 +00:00
Import zha quirks in the executor (#114685)
This commit is contained in:
parent
d058615961
commit
53cbb83e46
@ -124,8 +124,8 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
|
|||||||
zha_data = get_zha_data(hass)
|
zha_data = get_zha_data(hass)
|
||||||
|
|
||||||
if zha_data.yaml_config.get(CONF_ENABLE_QUIRKS, True):
|
if zha_data.yaml_config.get(CONF_ENABLE_QUIRKS, True):
|
||||||
setup_quirks(
|
await hass.async_add_import_executor_job(
|
||||||
custom_quirks_path=zha_data.yaml_config.get(CONF_CUSTOM_QUIRKS_PATH)
|
setup_quirks, zha_data.yaml_config.get(CONF_CUSTOM_QUIRKS_PATH)
|
||||||
)
|
)
|
||||||
|
|
||||||
# Load and cache device trigger information early
|
# Load and cache device trigger information early
|
||||||
|
Loading…
x
Reference in New Issue
Block a user