From ad0ef0efb92582cc22bd62ca12db7266c37e74ad Mon Sep 17 00:00:00 2001 From: mdeweerd Date: Mon, 5 Aug 2024 17:48:18 +0200 Subject: [PATCH] Fix non-async load_yaml of services.yaml --- custom_components/zha_toolkit/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/zha_toolkit/__init__.py b/custom_components/zha_toolkit/__init__.py index 08f4164..852ceaf 100644 --- a/custom_components/zha_toolkit/__init__.py +++ b/custom_components/zha_toolkit/__init__.py @@ -893,7 +893,7 @@ async def command_handler_default( ) -async def reload_services_yaml(hass): +def reload_services_yaml(hass): import os from homeassistant.const import CONF_DESCRIPTION, CONF_NAME @@ -917,7 +917,7 @@ async def reload_services_yaml(hass): async def _register_services(hass): register_services(hass) - await reload_services_yaml(hass) + await hass.async_add_executor_job(reload_services_yaml, hass) #